Skip to content

Commit

Permalink
fix: set resolved environment for environment selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 3, 2021
1 parent aad177d commit f02474b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/pacts/pacts_for_verification_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f02474b

Please sign in to comment.