Skip to content

Commit 9876743

Browse files
joewilliamsdanielsdeleo
authored andcommitted
a little more clean up
1 parent e0f9d68 commit 9876743

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

chef/lib/chef/provider/erl_call.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ def action_run
8080
raise Chef::Exceptions::ErlCall, stderr_output
8181
end
8282

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
83+
unless stdout_output[0..3].include?('{ok,')
8784
raise Chef::Exceptions::ErlCall, stdout_output
8885
end
8986

87+
Chef::Log.debug("#{stdout_output}")
88+
Chef::Log.info("Ran erl_call[#{@new_resource.name}] successfully")
89+
9090
ensure
9191
Process.wait(pid) if pid
9292
end

0 commit comments

Comments
 (0)