builder/amazon/common: wait for terminated state

This commit is contained in:
Mitchell Hashimoto 2013-07-31 09:37:43 -07:00
parent 02c20af35e
commit 0820da6039

View File

@ -99,7 +99,7 @@ func (s *StepRunSourceInstance) Cleanup(state map[string]interface{}) {
Conn: ec2conn, Conn: ec2conn,
Pending: []string{"pending", "running", "shutting-down", "stopped", "stopping"}, Pending: []string{"pending", "running", "shutting-down", "stopped", "stopping"},
Refresh: InstanceStateRefreshFunc(ec2conn, s.instance), Refresh: InstanceStateRefreshFunc(ec2conn, s.instance),
Target: "running", Target: "terminated",
} }
WaitForState(&stateChange) WaitForState(&stateChange)