summaryrefslogtreecommitdiff
path: root/lib/chef/knife.rb
diff options
context:
space:
mode:
authorLuke Amdor <luke.amdor@gmail.com>2014-04-16 15:25:40 -0700
committerBryan McLellan <btm@getchef.com>2014-06-05 12:19:41 -0700
commitb88db29b5ab1e388cd8f03f2aa8ce2c3018ff1a5 (patch)
tree00cb2d4064e1e648a9c09ac4eb53e2d283073001 /lib/chef/knife.rb
parent5c6492da1466048eb259a523fbf38345c1018567 (diff)
downloadchef-b88db29b5ab1e388cd8f03f2aa8ce2c3018ff1a5.tar.gz
making the chef-zero host configurable for knife and chef-client
Diffstat (limited to 'lib/chef/knife.rb')
-rw-r--r--lib/chef/knife.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb
index 5cbc968980..f8622975e8 100644
--- a/lib/chef/knife.rb
+++ b/lib/chef/knife.rb
@@ -394,6 +394,7 @@ class Chef
if Chef::Config.local_mode && !Chef::Config.has_key?(:cookbook_path) && !Chef::Config.has_key?(:chef_repo_path)
Chef::Config.chef_repo_path = Chef::Config.find_chef_repo_path(Dir.pwd)
end
+ Chef::Config.chef_zero.host = config[:chef_zero_host] if config[:chef_zero_host]
Chef::Config.chef_zero.port = config[:chef_zero_port] if config[:chef_zero_port]
# Expand a relative path from the config directory. Config from command