add pending to allowable states while waiting for ebs instance to stop

This commit is contained in:
Megan Marsh 2017-06-20 10:55:23 -07:00
parent d706147423
commit f7a703dfb2
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func (s *StepStopEBSBackedInstance) Run(state multistep.StateBag) multistep.Step
// Wait for the instance to actual stop
ui.Say("Waiting for the instance to stop...")
stateChange := StateChangeConf{
Pending: []string{"running", "stopping"},
Pending: []string{"running", "pending", "stopping"},
Target: "stopped",
Refresh: InstanceStateRefreshFunc(ec2conn, *instance.InstanceId),
StepState: state,