rajujith commented on code in PR #7857:
URL: https://github.com/apache/cloudstack/pull/7857#discussion_r2333393344
##########
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);
Review Comment:
'ID'
##########
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);
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]