DaanHoogland commented on code in PR #8300:
URL: https://github.com/apache/cloudstack/pull/8300#discussion_r1481020452
##########
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java:
##########
@@ -4763,7 +4763,13 @@ protected Answer execute(MigrateCommand cmd) {
final String vmName = cmd.getVmName();
try {
VmwareHypervisorHost hyperHost = getHyperHost(getServiceContext());
+ if (hyperHost == null) {
+ throw new CloudRuntimeException("no hypervisor found for
migrate command");
+ }
ManagedObjectReference morDc = hyperHost.getHyperHostDatacenter();
+ if (morDc == null) {
+ throw new CloudRuntimeException("no morDc found for migrate
command");
Review Comment:
```suggestion
throw new CloudRuntimeException("no Managed Object Reference
for the Data Center 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]