syntax change

pull/9964/head
James Griffith 5 years ago 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)

Loading…
Cancel
Save