builder/amazon/chroot: more valid transition states while detaching

This commit is contained in:
Mitchell Hashimoto 2013-07-29 19:08:22 -07:00
parent 702f299343
commit 5a70c82e25

View File

@ -89,7 +89,7 @@ func (s *StepAttachVolume) Cleanup(state map[string]interface{}) {
// Wait for the volume to detach
stateChange := awscommon.StateChangeConf{
Conn: ec2conn,
Pending: []string{"detaching"},
Pending: []string{"attaching", "attached", "detaching"},
StepState: state,
Target: "detached",
Refresh: func() (interface{}, string, error) {