Commit 21beabd0 authored by Justin Santa Barbara's avatar Justin Santa Barbara

Default attachment status to detached

So no-attachments = status detached
parent cdc569a6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment