We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0f9d68 commit 9876743Copy full SHA for 9876743
1 file changed
chef/lib/chef/provider/erl_call.rb
@@ -80,13 +80,13 @@ def action_run
80
raise Chef::Exceptions::ErlCall, stderr_output
81
end
82
83
- if stdout_output[0..3].include?('{ok,')
84
- Chef::Log.debug("#{stdout_output}")
85
- Chef::Log.info("Ran erl_call[#{@new_resource.name}] successfully")
86
- else
+ unless stdout_output[0..3].include?('{ok,')
87
raise Chef::Exceptions::ErlCall, stdout_output
88
89
+ Chef::Log.debug("#{stdout_output}")
+ Chef::Log.info("Ran erl_call[#{@new_resource.name}] successfully")
+
90
ensure
91
Process.wait(pid) if pid
92
0 commit comments