From f7a703dfb29fb9f45abc0ed861fc47ab1e54e1f3 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Tue, 20 Jun 2017 10:55:23 -0700 Subject: [PATCH] add pending to allowable states while waiting for ebs instance to stop --- builder/amazon/common/step_stop_ebs_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/common/step_stop_ebs_instance.go b/builder/amazon/common/step_stop_ebs_instance.go index 42ce308e8..b3fb72ee6 100644 --- a/builder/amazon/common/step_stop_ebs_instance.go +++ b/builder/amazon/common/step_stop_ebs_instance.go @@ -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,