Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2012
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. def save_last_run_summary(report)
  2. mode = Puppet.settings.setting(:lastrunfile).mode
  3. Puppet::Util::FileLocking.writelock(Puppet[:lastrunfile]) do |file|
  4. file.chmod(mode)
  5. file.print YAML.dump(report.raw_summary)
  6. end
  7. rescue => detail
  8. puts detail.backtrace if Puppet[:trace]
  9. Puppet.err "Could not save last run local report: #{detail}"
  10. end
  11.  
  12.  
  13. ###
  14. # puppetd --test
  15. ...
  16. ...
  17. ...
  18.  
  19. err: Could not save last run local report: can't convert String into Integer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement