Skip to content

Commit fef31d3

Browse files
committed
Updating Chef::Client to use the Chef::Config[:node_name] unless one is specified on the command line
1 parent 7d6c0fb commit fef31d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

chef/bin/chef-client

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Chef::Config.from_file(config[:config_file])
7979
if config[:log_level]
8080
Chef::Log.level(config[:log_level].to_sym)
8181
end
82+
config[:node_name] ||= Chef::Config[:node_name]
8283

8384
c = Chef::Client.new
8485
c.json_attribs = config[:json_attribs]

0 commit comments

Comments
 (0)