vishesh92 commented on code in PR #8300:
URL: https://github.com/apache/cloudstack/pull/8300#discussion_r1481009946


##########
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");

Review Comment:
   ```suggestion
                   throw new CloudRuntimeException("no hyperHost 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]

Reply via email to