You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s.vmScope.Error(err, "failed to check volume attachment on vm", "vmName", s.vmScope.Name())
108
+
returntrue, nil
109
+
}
110
+
iflen(volumes) ==0 {
111
+
s.vmScope.Info("No volume attachments found on vm", "vmName", s.vmScope.Name())
112
+
returntrue, nil
113
+
}
114
+
for_, volume:=rangevolumes {
115
+
s.vmScope.Info("VolumeAttachment is still attached on vm, waiting for the volume to be detached before delete the vm", "volume", volume, "vmName", s.vmScope.Name())
116
+
}
117
+
returnfalse, nil
118
+
}); err!=nil {
119
+
s.vmScope.Error(err, "failed to wait for volume attachments to be detached on vm", "vmName", s.vmScope.Name())
120
+
}
121
+
122
+
latency:=time.Since(now)
123
+
s.vmScope.Info("Waiting for volume attachments to be detached on vm took", "vmName", s.vmScope.Name(), "duration", latency.String())
0 commit comments