Skip to content

Commit 9efb35d

Browse files
Update log message with current management server state
Co-authored-by: Bernardo De Marco Gonçalves <[email protected]>
1 parent 84fe078 commit 9efb35d

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
@@ -5512,7 +5512,7 @@ public boolean removeManagementServer(RemoveManagementServerCmd cmd) {
55125512
}
55135513

55145514
if (!ManagementServerHost.State.Down.equals(managementServer.getState())) {
5515-
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()));
5515+
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()));
55165516
}
55175517

55185518
managementServer.setRemoved(new Date());

0 commit comments

Comments
 (0)