diff options
author | Tim Smith <tsmith@chef.io> | 2020-07-20 10:32:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 10:32:41 -0700 |
commit | 59ca6e689dd38d20fc1f0eeb7ad2aa153c192922 (patch) | |
tree | 7c237b3a6aa550edd9f91c215bdba336a0b7c530 /lib/chef/knife | |
parent | 439d6921d6c0a7a8cc5abd8c5c8b97f1447c75a9 (diff) | |
parent | c0366bad5f5ea7e5eba2311cf9063e1d5615f0c0 (diff) | |
download | chef-59ca6e689dd38d20fc1f0eeb7ad2aa153c192922.tar.gz |
Merge pull request #10162 from MsysTechnologiesllc/dh/dont-check-list-profile-for-already-selected-bad-profile
don't check list-profiles for already selected bad profile
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/config_list_profiles.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/knife/config_list_profiles.rb b/lib/chef/knife/config_list_profiles.rb index b69ebf4e69..f652377e89 100644 --- a/lib/chef/knife/config_list_profiles.rb +++ b/lib/chef/knife/config_list_profiles.rb @@ -32,6 +32,10 @@ class Chef description: "Ignore the current config.rb/knife.rb configuration.", default: false + def configure_chef + apply_computed_config + end + def run credentials_data = self.class.config_loader.parse_credentials_file if credentials_data.nil? || credentials_data.empty? @@ -72,7 +76,6 @@ class Chef # Try to reset the config. unless config[:ignore_knife_rb] Chef::Config.reset - Chef::WorkstationConfigLoader.new(config[:config_file], Chef::Log, profile: config[:profile]).load apply_computed_config end |