cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DaanHoogland <>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8964: Ovm3HypervisorGuru wrong...
Date Sun, 25 Oct 2015 19:01:07 GMT
Github user DaanHoogland commented on a diff in the pull request:
    --- Diff: plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/resources/
    @@ -105,9 +105,6 @@ public boolean trackVmHostChange() {
                         EndPoint ep = endPointSelector.selectHypervisorHost(new ZoneScope(host.getDataCenterId()));
                         host = hostDao.findById(ep.getId());
    -                    // String snapshotHotFixVersion = host.getDetail(XenserverConfigs.XS620HotFix);
    -                    // if (snapshotHotFixVersion != null && snapshotHotFixVersion.equalsIgnoreCase(XenserverConfigs.XSHotFix62ESP1004))
    -                    return new Pair<Boolean, Long>(Boolean.TRUE,  Long.valueOf(ep.getId()));
    --- End diff --
    as we never return anything but ew Pair<Boolean, Long>(Boolean.FALSE, Long.valueOf(hostId))
we might as well return it as the first line of the method. There is side effect in the code
that is needed, so let's extract that to another (set of) private method(s). improves readability
and thus maintainability of the code

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 or file a JIRA ticket
with INFRA.

View raw message