rajujith commented on code in PR #7857:
URL: https://github.com/apache/cloudstack/pull/7857#discussion_r2333394064


##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -1680,21 +1680,21 @@ public UserVm 
updateDefaultNicForVirtualMachine(UpdateDefaultNicForVMCmd cmd) th
 
         UserVmVO vmInstance = _vmDao.findById(vmId);
         if (vmInstance == null) {
-            throw new InvalidParameterValueException("unable to find a virtual 
machine with id " + vmId);
+            throw new InvalidParameterValueException("Unable to find an 
Instance with id " + vmId);
         }
 
         // Check that Vm does not have VM Snapshots
         if (_vmSnapshotDao.findByVm(vmId).size() > 0) {
-            throw new InvalidParameterValueException("NIC cannot be updated 
for VM with VM Snapshots");
+            throw new InvalidParameterValueException("NIC cannot be updated 
for Instance with Instance Snapshots");
         }
 
         NicVO nic = _nicDao.findById(nicId);
         if (nic == null) {
-            throw new InvalidParameterValueException("unable to find a nic 
with id " + nicId);
+            throw new InvalidParameterValueException("Unable to find a NIC 
with id " + nicId);
         }
         NetworkVO network = _networkDao.findById(nic.getNetworkId());
         if (network == null) {
-            throw new InvalidParameterValueException("unable to find a network 
with id " + nic.getNetworkId());
+            throw new InvalidParameterValueException("Unable to find a Network 
with id " + nic.getNetworkId());

Review Comment:
   'ID'



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to