From 21beabd0a78e7b11357522e4e68828766e319755 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Fri, 3 Apr 2015 10:53:21 -0700 Subject: [PATCH] Default attachment status to detached So no-attachments = status detached --- pkg/cloudprovider/aws/aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloudprovider/aws/aws.go b/pkg/cloudprovider/aws/aws.go index 8d9ed7a848c..b7c41ae89e4 100644 --- a/pkg/cloudprovider/aws/aws.go +++ b/pkg/cloudprovider/aws/aws.go @@ -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