builder/amazonebs: Get rid of TODO since we can specify source states

This commit is contained in:
Mitchell Hashimoto 2013-06-19 20:57:56 -07:00
parent 3503e96894
commit 868bb9c6f7
1 changed files with 0 additions and 2 deletions

View File

@ -25,9 +25,7 @@ func (s *stepStopInstance) Run(state map[string]interface{}) multistep.StepActio
} }
// Wait for the instance to actual stop // 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...") ui.Say("Waiting for the instance to stop...")
instance.State.Name = "stopping"
instance, err = waitForState(ec2conn, instance, []string{"running", "stopping"}, "stopped") instance, err = waitForState(ec2conn, instance, []string{"running", "stopping"}, "stopped")
if err != nil { if err != nil {
err := fmt.Errorf("Error waiting for instance to stop: %s", err) err := fmt.Errorf("Error waiting for instance to stop: %s", err)