diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-03-18 14:23:49 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2014-03-24 12:17:03 -0700 |
commit | 6eaaea33a61658bae7cc224cdd2eb0db74413efc (patch) | |
tree | 90525e99da835303aa0f11d3e5caf78a7b78fe24 | |
parent | 1e1b7d6cab24a42ad89ea854a26634025bc6abcf (diff) | |
download | chef-6eaaea33a61658bae7cc224cdd2eb0db74413efc.tar.gz |
use local config var in #register
-rw-r--r-- | lib/chef/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index 288eb37db5..12e32350d1 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -311,7 +311,7 @@ class Chef # === Returns # rest<Chef::REST>:: returns Chef::REST connection object def register(client_name=node_name, config=Chef::Config) - if Chef::Config[:ssl_verify_mode] == :verify_none && !Chef::Config[:verify_api_cert] + if config[:ssl_verify_mode] == :verify_none && !config[:verify_api_cert] Chef::Log.warn "SSL validation of Chef API Endpoint is disabled, " \ "set verify_api_cert to true or ssl_verify_mode to :verify_peer to enable." end |