Skip to content

Commit d373f97

Browse files
Update VM name, when the new name provided in updateVirtualMachine API in different case. (#6379)
1 parent 556f9da commit d373f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2982,7 +2982,7 @@ public UserVm updateVirtualMachine(long id, String displayName, String group, Bo
29822982
// Check is hostName is RFC compliant
29832983
checkNameForRFCCompliance(hostName);
29842984

2985-
if (vm.getHostName().equalsIgnoreCase(hostName)) {
2985+
if (vm.getHostName().equals(hostName)) {
29862986
s_logger.debug("Vm " + vm + " is already set with the hostName specified: " + hostName);
29872987
hostName = null;
29882988
}

0 commit comments

Comments
 (0)