Skip to content

Commit 0a1183a

Browse files
committed
Fixing misleading debug code
1 parent 1f48056 commit 0a1183a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

chef/lib/chef/mixin/command.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ def run_command(args={})
3737
if Proc === args[:only_if]
3838
res = args[:only_if].call
3939
unless res
40-
Chef::Log.debug("Skipping #{args[:command_string]} - onlyif #{args[:only_if]}")
40+
Chef::Log.debug("Skipping #{args[:command_string]} - only_if #{args[:only_if]}")
4141
return false
4242
end
4343
else
4444
status = popen4(args[:only_if]) { |p, i, o, e| }
4545
if status.exitstatus != 0
46-
Chef::Log.debug("Skipping #{args[:command_string]} - onlyif #{args[:only_if]} returned #{status.exitstatus}")
46+
Chef::Log.debug("Skipping #{args[:command_string]} - only_if #{args[:only_if]} returned #{status.exitstatus}")
4747
return false
4848
end
4949
end
@@ -53,14 +53,14 @@ def run_command(args={})
5353
if Proc === args[:not_if]
5454
res = args[:not_if].call
5555
unless res
56-
Chef::Log.debug("Skipping #{args[:command_string]} - onlyif #{args[:not_if]}")
56+
Chef::Log.debug("Skipping #{args[:command_string]} - not_if #{args[:not_if]}")
5757
return false
5858
end
5959
else
6060
Chef::Log.debug("I should be running '#{args[:not_if]}'")
6161
status = popen4(args[:not_if]) { |p, i, o, e| }
6262
if status.exitstatus == 0
63-
Chef::Log.debug("Skipping #{args[:command_string]} - unless #{args[:not_if]} returned #{status.exitstatus}")
63+
Chef::Log.debug("Skipping #{args[:command_string]} - not_if #{args[:not_if]} returned #{status.exitstatus}")
6464
return false
6565
end
6666
end

0 commit comments

Comments
 (0)