mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Default attachment status to detached
So no-attachments = status detached
This commit is contained in:
parent
cdc569a6c8
commit
21beabd0a7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user