Github user rhtyd commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1640#discussion_r75089504
  
    --- Diff: server/src/com/cloud/ha/HighAvailabilityManagerImpl.java ---
    @@ -282,7 +282,9 @@ public void scheduleRestartForVmsOnHost(final HostVO 
host, boolean investigate)
                             + hostId + " VM HA is done");
                     continue;
                 }
    -            scheduleRestart(vm, investigate);
    +            if (vm.isHaEnabled()) {
    --- End diff --
    
    Why not skip the loop with a `continue` around line 268 when vm is not HA 
enabled?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to