cleanup temp keys

This commit is contained in:
Matthew Hooker 2018-09-26 23:12:13 -07:00
parent 098764d8ac
commit 445c3fb5bb
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 3 additions and 3 deletions

View File

@ -118,6 +118,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
&stepCreateImage{
uploadImageCommand: b.config.BuilderUploadImageCommand,
},
&common.StepCleanupTempKeys{
Comm: &b.config.Comm,
},
}
} else {
// Build the steps
@ -140,9 +143,6 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
&common.StepCleanupTempKeys{
Comm: &b.config.Comm,
},
&common.StepCleanupTempKeys{
Comm: &b.config.Comm,
},
&stepSnapshot{},
&stepListImages{},
}