Omer Frenkel has posted comments on this change. Change subject: core: RunVmCommand.canDoAction cleanup (1) ......................................................................
Patch Set 2: (2 inline comments) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/RunVmValidator.java Line 14: vm.getVdsGroupCompatibilityVersion(), Line 15: vm.getStaticData()); Line 16: Line 17: if (!validationErrors.isEmpty()) { Line 18: VmHandler.handleCustomPropertiesError(validationErrors, messages); why the handle method is left in vmHandler? Line 19: return false; Line 20: } Line 21: Line 22: return true; .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmPoolCommandBase.java Line 262: runVmParams.getDestinationVdsId() : vm.getDedicatedVmForVds(), Line 263: true, Line 264: new VdsFreeMemoryChecker(new NonWaitingDelayer())); Line 265: Line 266: return getRunVmValidator().canRunVm(vm, messages) && i dont understand the canRunVm method in runVmValidator, why not use getRunVmValidator().validateVmProperties(vm, messages) as done in run vm? Line 267: VmRunHandler.getInstance().canRunVm(vm, Line 268: messages, Line 269: runVmParams, Line 270: vdsSelector, -- To view, visit http://gerrit.ovirt.org/13397 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I60bbdb54d150878123968893c23169de253e1ba2 Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: Arik Hadas <aha...@redhat.com> Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com> Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: Laszlo Hornyak <lhorn...@redhat.com> Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: ofri masad <oma...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches