Vered Volansky has posted comments on this change.

Change subject: core: Refactor SP validation out of ImagesHandler
......................................................................


Patch Set 2: Looks good to me, but someone else must approve

(1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CreateAllSnapshotsFromVmCommand.java
Line 281: 
Line 282:     @Override
Line 283:     protected boolean canDoAction() {
Line 284:         VmValidator vmValidator = new VmValidator(getVm());
Line 285:         boolean result = validateVM(vmValidator);
Why, oh why, don't you return here?
Line 286:         List<DiskImage> disksList = getDisksList();
Line 287:         if (result && disksList.size() > 0) {
Line 288:             StoragePoolValidator spValidator = new 
StoragePoolValidator(getStoragePool());
Line 289:             SnapshotsValidator snapshotValidator = new 
SnapshotsValidator();


--
To view, visit http://gerrit.ovirt.org/11323
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I5caa3724fb73c8fa8932c8071f6d27a78d681bb3
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to