Project

General

Profile

Bug #1549 » puppetrb.patch

Povilas Daukintis, 04/04/2012 09:37 AM

View differences:

lib/proxy/puppet.rb
puppetrun << " kick" unless puppetrun.include?('puppetrun')
command = %x[#{sudo} #{puppetrun} --host #{hosts.join(" --host ")}]
unless command =~ /finished with exit code 0/
logger.warn command
false
status = $?.to_i
if status == 0
logger.info "Puppet run was successfully triggered on #{hosts.join(" --host ")}"
else
logger.warn "Puppet run failed: #{command}"
return false
end
end
end
(3-3/3)