Skip to content

Commit 16c4aba

Browse files
nicoschmdtbernardodemarco
authored andcommitted
Update log message with current management server state
Co-authored-by: Bernardo De Marco Gonçalves <[email protected]>
1 parent 380d621 commit 16c4aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/server/ManagementServerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5571,7 +5571,7 @@ public boolean removeManagementServer(RemoveManagementServerCmd cmd) {
55715571
}
55725572

55735573
if (!ManagementServerHost.State.Down.equals(managementServer.getState())) {
5574-
throw new InvalidParameterValueException(String.format("Unable to remove Management Server with ID [%s]. It can only be removed when it is in the [%s] state, however currently it is in the [%s] state", managementServer.getUuid(), ManagementServerHost.State.Down.name(), ManagementServerHost.State.Up.name()));
5574+
throw new InvalidParameterValueException(String.format("Unable to remove Management Server with ID [%s]. It can only be removed when it is in the [%s] state, however currently it is in the [%s] state", managementServer.getUuid(), ManagementServerHost.State.Down.name(), managementServer.getState().name()));
55755575
}
55765576

55775577
managementServer.setRemoved(new Date());

0 commit comments

Comments
 (0)