summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-03-18 14:23:49 -0700
committerdanielsdeleo <dan@getchef.com>2014-03-24 12:17:03 -0700
commit6eaaea33a61658bae7cc224cdd2eb0db74413efc (patch)
tree90525e99da835303aa0f11d3e5caf78a7b78fe24
parent1e1b7d6cab24a42ad89ea854a26634025bc6abcf (diff)
downloadchef-6eaaea33a61658bae7cc224cdd2eb0db74413efc.tar.gz
use local config var in #register
-rw-r--r--lib/chef/client.rb2
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