vishesh92 commented on code in PR #8300:
URL: https://github.com/apache/cloudstack/pull/8300#discussion_r1481022285
##########
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java:
##########
@@ -4774,6 +4780,9 @@ protected Answer execute(MigrateCommand cmd) {
}
VmwareHypervisorHost destHyperHost = getTargetHyperHost(new
DatacenterMO(hyperHost.getContext(), morDc), cmd.getDestinationIp());
+ if (destHyperHost == null) {
+ throw new CloudRuntimeException("no destHyperHost found for
migrate command");
Review Comment:
```suggestion
throw new CloudRuntimeException("no destination hypervisor
host found for migrate command");
```
--
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]