mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-10 08:21:39 -04:00
syntax change
This commit is contained in:
committed by
Megan Marsh
parent
f86f7c4464
commit
c86a48fbc9
@@ -61,7 +61,8 @@ func (s *StepShutdown) Run(ctx context.Context, state multistep.StateBag) multis
|
||||
return multistep.ActionContinue
|
||||
}
|
||||
|
||||
if state.Get("communicator") == nil {
|
||||
comm, _ := state.Get("communicator").(packer.Communicator)
|
||||
if comm == nil {
|
||||
|
||||
msg := fmt.Sprintf("Please shutdown virtual machine within %s.", s.Config.Timeout)
|
||||
ui.Message(msg)
|
||||
|
||||
Reference in New Issue
Block a user