From 868bb9c6f75976f23d96ba4cf06f489b9466fa84 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 19 Jun 2013 20:57:56 -0700 Subject: [PATCH] builder/amazonebs: Get rid of TODO since we can specify source states --- builder/amazonebs/step_stop_instance.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/builder/amazonebs/step_stop_instance.go b/builder/amazonebs/step_stop_instance.go index 09dca43d2..59b141dee 100644 --- a/builder/amazonebs/step_stop_instance.go +++ b/builder/amazonebs/step_stop_instance.go @@ -25,9 +25,7 @@ func (s *stepStopInstance) Run(state map[string]interface{}) multistep.StepActio } // Wait for the instance to actual stop - // TODO(mitchellh): Handle diff source states, i.e. this force state sucks ui.Say("Waiting for the instance to stop...") - instance.State.Name = "stopping" instance, err = waitForState(ec2conn, instance, []string{"running", "stopping"}, "stopped") if err != nil { err := fmt.Errorf("Error waiting for instance to stop: %s", err)