diff options
author | Todd Zullinger <tmz@pobox.com> | 2014-05-03 11:17:29 -0400 |
---|---|---|
committer | Todd Zullinger <tmz@pobox.com> | 2014-05-03 11:17:29 -0400 |
commit | c3f263a5c23658d22c35a6f2e7e4439241478d14 (patch) | |
tree | 22385b1e705e9a0712c1174a8025e12835323fd6 /puppet-host-package | |
parent | b30fea2deee0f9cf9e58ed5ecd92dbcc2f027a50 (diff) | |
download | puppet-host-package-c3f263a5c23658d22c35a6f2e7e4439241478d14.tar.gz puppet-host-package-c3f263a5c23658d22c35a6f2e7e4439241478d14.tar.xz puppet-host-package-c3f263a5c23658d22c35a6f2e7e4439241478d14.zip |
Cleanup tmp files
We don't want to leave the cert/key laying around in a tmp dir. This
was missed when host.cleanup() was moved out of host.rpm() a long time
ago.
Diffstat (limited to 'puppet-host-package')
-rwxr-xr-x | puppet-host-package | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/puppet-host-package b/puppet-host-package index 56b0f32..62958a7 100755 --- a/puppet-host-package +++ b/puppet-host-package @@ -115,6 +115,11 @@ def _main(): print error continue + try: + host.cleanup() + except Exception, error: + print 'Failed to cleanup %s: %s' % (hostname, error) + packages.extend(host.packages) if packages and opts.sign: |