mirror of https://github.com/apache/cloudstack.git
Update VM name, when the new name provided in updateVirtualMachine API in different case. (#6379)
This commit is contained in:
parent
556f9dac0f
commit
d373f973ba
|
|
@ -2982,7 +2982,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
|||
// Check is hostName is RFC compliant
|
||||
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);
|
||||
hostName = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue