Update VM name, when the new name provided in updateVirtualMachine API in different case. (#6379)

This commit is contained in:
Suresh Kumar Anaparti 2022-05-12 15:45:19 +05:30 committed by GitHub
parent 556f9dac0f
commit d373f973ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2982,7 +2982,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
// Check is hostName is RFC compliant // Check is hostName is RFC compliant
checkNameForRFCCompliance(hostName); checkNameForRFCCompliance(hostName);
if (vm.getHostName().equalsIgnoreCase(hostName)) { if (vm.getHostName().equals(hostName)) {
s_logger.debug("Vm " + vm + " is already set with the hostName specified: " + hostName); s_logger.debug("Vm " + vm + " is already set with the hostName specified: " + hostName);
hostName = null; hostName = null;
} }