summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-01-15 09:34:18 -0800
committerGitHub <noreply@github.com>2021-01-15 09:34:18 -0800
commitf4deece70e95cc98f38286e73e8f838cadccf2f1 (patch)
treea15aad67d308020e217e5d665e5f3f1549c47078
parent45e90a89aba1e9e0e124346c49d5b3018b8e0c8c (diff)
parent89a47f65eb39b3a9171598b113e85df33a34135e (diff)
downloadchef-f4deece70e95cc98f38286e73e8f838cadccf2f1.tar.gz
Merge pull request #10886 from chef/remove_26
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/shell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb
index 5bff9c0292..eee9493cd1 100644
--- a/lib/chef/shell.rb
+++ b/lib/chef/shell.rb
@@ -352,7 +352,7 @@ module Shell
puts "loading configuration: #{config_msg}"
# load the config (if we have one)
- if !config[:config_file].nil?
+ unless config[:config_file].nil?
if File.exist?(config[:config_file]) && File.readable?(config[:config_file])
Chef::Config.from_file(config[:config_file])
end