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
iferr.(*transport.TransportError).HttpCode==500&&strings.Contains(err.(*transport.TransportError).Payload.Message, fmt.Sprintf("Failed to get virtual machine '%s'", vmName)) {
72
-
emptyVM:=&models.V1ClusterVirtualMachine{}
73
-
returnemptyVM, "Deleted", nil
74
-
} else {
75
-
returnnil, "", err
70
+
iftransportErr, ok:=err.(*transport.TransportError); ok {
71
+
iftransportErr.HttpCode==500&&strings.Contains(transportErr.Payload.Message, fmt.Sprintf("Failed to get virtual machine '%s'", vmName)) {
0 commit comments