We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e544a4 commit ca6b085Copy full SHA for ca6b085
1 file changed
features/steps/run_client.rb
@@ -20,8 +20,9 @@
20
# When
21
###
22
When /^I run the chef\-client$/ do
23
+ log_level = ENV["LOG_LEVEL"] ? ENV["LOG_LEVEL"] : "error"
24
status = Chef::Mixin::Command.popen4(
- "chef-client -c #{File.expand_path(File.join(File.dirname(__FILE__), '..', 'data', 'config', 'client.rb'))}", :waitlast => true) do |p, i, o, e|
25
+ "chef-client -l #{log_level} -c #{File.expand_path(File.join(File.dirname(__FILE__), '..', 'data', 'config', 'client.rb'))}", :waitlast => true) do |p, i, o, e|
26
i.close
27
@stdout = o.gets(nil)
28
@stderr = e.gets(nil)
0 commit comments