From f02474b72c9b01a3b68eb8b0e6dc9e9f768961bc Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Wed, 3 Nov 2021 21:02:32 +1100 Subject: [PATCH] fix: set resolved environment for environment selectors --- lib/pact_broker/pacts/pacts_for_verification_repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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