This is an automated email from the ASF dual-hosted git repository.

nvazquez pushed a commit to branch 4.16
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.16 by this push:
     new d373f973ba Update VM name, when the new name provided in 
updateVirtualMachine API in different case. (#6379)
d373f973ba is described below

commit d373f973badbb1d74f24ffacc2c193503bf1f03b
Author: Suresh Kumar Anaparti <[email protected]>
AuthorDate: Thu May 12 15:45:19 2022 +0530

    Update VM name, when the new name provided in updateVirtualMachine API in 
different case. (#6379)
---
 server/src/main/java/com/cloud/vm/UserVmManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java 
b/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
index 3feaa58765..7874540360 100644
--- a/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
+++ b/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
@@ -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;
             }

Reply via email to