lib/cucumber/chef/helpers/chef_client.rb in cucumber-chef-2.0.6 vs lib/cucumber/chef/helpers/chef_client.rb in cucumber-chef-2.0.7

- old
+ new

@@ -24,11 +24,10 @@ ################################################################################ # call this in a Before hook def chef_set_client_config(config={}) @chef_client_config = (@chef_client_config || { - :environment => "_default", :log_level => :debug, :log_location => "/var/log/chef/client.log", :chef_server_url => "https://api.opscode.com/organizations/#{config[:orgname]}", :validation_client_name => "#{config[:orgname]}-validator" }).merge(config) @@ -64,10 +63,10 @@ f.puts("log_location \"#{@chef_client_config[:log_location]}\"") f.puts("chef_server_url \"#{@chef_client_config[:chef_server_url]}\"") f.puts("ssl_verify_mode :verify_none") f.puts("validation_client_name \"#{@chef_client_config[:validation_client_name]}\"") f.puts("node_name \"#{name}\"") - f.puts("environment \"#{@chef_client_config[:environment]}\"") + f.puts("environment \"#{@chef_client_config[:environment]}\"") if @chef_client_config[:environment] f.puts f.puts("Mixlib::Log::Formatter.show_time = true") end attributes_json = File.join("/", container_root(name), "etc", "chef", "attributes.json")