mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
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
|
// 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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user