diff options
Diffstat (limited to 'puppet-host-package')
-rwxr-xr-x | puppet-host-package | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/puppet-host-package b/puppet-host-package index f609836..9ad8b7e 100755 --- a/puppet-host-package +++ b/puppet-host-package @@ -103,11 +103,13 @@ def _main(): if not os.path.exists(host.files['cert']) or opts.force_cert: try: host.gencert() except puppethost.PuppetHostError, error: + host.cleanup() print error continue try: host.package() except Exception, error: + host.cleanup() print error continue |