rajujith commented on code in PR #7857:
URL: https://github.com/apache/cloudstack/pull/7857#discussion_r2333391089
##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -1459,17 +1459,17 @@ public UserVm addNicToVirtualMachine(AddNicToVMCmd cmd)
throws InvalidParameterV
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 added to
VM with VM Snapshots");
+ throw new InvalidParameterValueException("NIC cannot be added to
Instance with Instance Snapshots");
}
NetworkVO network = _networkDao.findById(networkId);
if (network == null) {
- throw new InvalidParameterValueException("unable to find a network
with id " + networkId);
+ throw new InvalidParameterValueException("Unable to find a Network
with id " + networkId);
Review Comment:
'ID'
##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -1611,22 +1611,22 @@ public UserVm
removeNicFromVirtualMachine(RemoveNicFromVMCmd cmd) throws Invalid
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'
--
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]