diff options
author | Tim Smith <tsmith@chef.io> | 2021-01-15 09:34:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 09:34:18 -0800 |
commit | f4deece70e95cc98f38286e73e8f838cadccf2f1 (patch) | |
tree | a15aad67d308020e217e5d665e5f3f1549c47078 | |
parent | 45e90a89aba1e9e0e124346c49d5b3018b8e0c8c (diff) | |
parent | 89a47f65eb39b3a9171598b113e85df33a34135e (diff) | |
download | chef-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.rb | 2 |
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 |