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
// Extract server name from attachment name (format: server--connection--vpc--subnet)
2985
+
parts:=strings.Split(att.Name, "--")
2986
+
iflen(parts) >=4 {
2987
+
serverToDetach=parts[0]
2988
+
}
2986
2989
2987
2990
break
2988
2991
}
2989
2992
}
2990
2993
2991
-
ifattachmentToRemove=="" {
2992
-
returnfalse, reverts, fmt.Errorf("no VPCAttachment found for server %s in vpc-02 (checked %d attachments)", serverToDetach, len(allAttList.Items)) //nolint:err113
2994
+
ifattachmentToRemove==""||serverToDetach==""{
2995
+
returntrue, reverts, fmt.Errorf("no VPCAttachment found for any server in vpc-02 (checked %d attachments)", len(allAttList.Items)) //nolint:err113
2993
2996
}
2994
2997
2995
2998
slog.Debug("Discovered server attachment", "server", serverToDetach, "attachment", attachmentToRemove, "connection", connectionName)
0 commit comments