File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments