summaryrefslogtreecommitdiff
path: root/lib/chef/knife/config_list_profiles.rb
diff options
context:
space:
mode:
authordheerajd-msys <dheeraj.dubey@msystechnologies.com>2020-07-15 15:02:47 +0530
committerdheerajd-msys <dheeraj.dubey@msystechnologies.com>2020-07-15 15:02:47 +0530
commitc0366bad5f5ea7e5eba2311cf9063e1d5615f0c0 (patch)
tree99a427c8e59e36c93cad6010e494e506cacdfded /lib/chef/knife/config_list_profiles.rb
parent0c240f5ea735db737ada2703e4053216e624e6a8 (diff)
downloadchef-c0366bad5f5ea7e5eba2311cf9063e1d5615f0c0.tar.gz
don't check list-profiles for already selected bad profile
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
Diffstat (limited to 'lib/chef/knife/config_list_profiles.rb')
-rw-r--r--lib/chef/knife/config_list_profiles.rb5
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