builder/amazon/common: wait for terminated state

pull/919/head
Mitchell Hashimoto 13 years ago
parent 00338a0b85
commit 006f0440a7

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

Loading…
Cancel
Save