Skip to content

Commit

Permalink
feat(can-i-deploy): actually remove feature toggle for --ignore option
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Aug 5, 2021
1 parent 8a40dad commit 1c686f2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/pact_broker/client/cli/matrix_commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ def can_i_deploy(*ignored_but_necessary)

validate_credentials
selectors = VersionSelectorOptionsParser.call(ARGV).select { |s| !s[:ignore] }
ignore_selectors = if ENV.fetch("PACT_BROKER_FEATURES", "").include?("ignore")
VersionSelectorOptionsParser.call(ARGV).select { |s| s[:ignore] }
else
[]
end
ignore_selectors = VersionSelectorOptionsParser.call(ARGV).select { |s| s[:ignore] }
validate_can_i_deploy_selectors(selectors)
dry_run = options.dry_run || ENV["PACT_BROKER_CAN_I_DEPLOY_DRY_RUN"] == "true"
can_i_deploy_options = { output: options.output, retry_while_unknown: options.retry_while_unknown, retry_interval: options.retry_interval, dry_run: dry_run, verbose: options.verbose }
Expand Down

0 comments on commit 1c686f2

Please sign in to comment.