Don't run StepCleanupTempKeys when communicator is set to none

pull/7095/head
Anish Bhatt 8 years ago
parent 32f226eda0
commit 916375183b
No known key found for this signature in database
GPG Key ID: E717BA6B76877E43

@ -19,6 +19,10 @@ func (s *StepCleanupTempKeys) Run(_ context.Context, state multistep.StateBag) m
// so there's no realistic situation where these keys can cause issues.
// However, it's nice to clean up after yourself.
if s.Comm.Type == "none" {
return multistep.ActionContinue
}
comm := state.Get("communicator").(packer.Communicator)
ui := state.Get("ui").(packer.Ui)

Loading…
Cancel
Save