mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +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 {
|
if len(info.Attachments) > 1 {
|
||||||
glog.Warningf("Found multiple attachments for volume: %v", info)
|
glog.Warningf("Found multiple attachments for volume: %v", info)
|
||||||
}
|
}
|
||||||
attachmentStatus := ""
|
attachmentStatus := "detached"
|
||||||
for _, attachment := range info.Attachments {
|
for _, attachment := range info.Attachments {
|
||||||
if attachment.Status == status {
|
if attachment.Status == status {
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user