diff --git a/lib/pact_broker/pacts/pacts_for_verification_repository.rb b/lib/pact_broker/pacts/pacts_for_verification_repository.rb index 2fd2b0ee8..13f85a908 100644 --- a/lib/pact_broker/pacts/pacts_for_verification_repository.rb +++ b/lib/pact_broker/pacts/pacts_for_verification_repository.rb @@ -111,7 +111,7 @@ def find_pacts_by_selector(provider_name, consumer_version_selectors) end def create_selected_pact(pact_publication, selector) - resolved_selector = if selector.currently_deployed? || selector.currently_supported? + resolved_selector = if selector.currently_deployed? || selector.currently_supported? || selector.in_environment? environment = environment_service.find_by_name(pact_publication.values.fetch(:environment_name)) selector.resolve_for_environment(pact_publication.consumer_version, environment, pact_publication.values[:target]) else