Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def save_last_run_summary(report)
- mode = Puppet.settings.setting(:lastrunfile).mode
- Puppet::Util::FileLocking.writelock(Puppet[:lastrunfile]) do |file|
- file.chmod(mode)
- file.print YAML.dump(report.raw_summary)
- end
- rescue => detail
- puts detail.backtrace if Puppet[:trace]
- Puppet.err "Could not save last run local report: #{detail}"
- end
- ###
- # puppetd --test
- ...
- ...
- ...
- err: Could not save last run local report: can't convert String into Integer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement