Default attachment status to detached

So no-attachments = status detached
This commit is contained in:
Justin Santa Barbara 2015-04-03 10:53:21 -07:00
parent cdc569a6c8
commit 21beabd0a7

View File

@ -784,7 +784,7 @@ func (self *awsDisk) waitForAttachmentStatus(status string) error {
if len(info.Attachments) > 1 {
glog.Warningf("Found multiple attachments for volume: %v", info)
}
attachmentStatus := ""
attachmentStatus := "detached"
for _, attachment := range info.Attachments {
if attachment.Status == status {
return nil