1 parent 59da6c0 commit 5aa657cCopy full SHA for 5aa657c
1 file changed
chef/lib/chef/provider/erl_call.rb
@@ -70,19 +70,18 @@ def action_run
70
71
stdout_output = ""
72
stdout.each_line { |line|
73
- Chef::Log.debug("#{line}")
74
stdout_output << line
75
}
76
stdout.close
77
78
stderr_output = ""
79
stderr.each_line { |line|
80
81
stderr_output << line
82
83
stderr.close
84
85
if stdout_output.include?('{ok,')
+ Chef::Log.debug("#{stdout_output}")
86
Chef::Log.info("Ran erl_call[#{@new_resource.name}] successfully")
87
elsif stderr_output.length > 0
88
raise Chef::Exceptions::ErlCall, stderr_output
0 commit comments