Omer Frenkel has posted comments on this change. Change subject: engine: Do not add disk in snapshot preview ......................................................................
Patch Set 3: (1 inline comment) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddDiskCommand.java Line 134: if (getVm() == null) { Line 135: return true; Line 136: } Line 137: Line 138: return i think its better to do: if (getVm() != null && validate...) because the return true above is confusing and someone who add further checks in the future may miss it Line 139: validate(getSnapshotValidator().vmNotDuringSnapshot(getVmId())) && Line 140: validate(getSnapshotValidator().vmNotInPreview(getVmId())) && Line 141: validate(new VmValidator(getVm()).vmNotLocked()); Line 142: } -- To view, visit http://gerrit.ovirt.org/13327 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ibfde0540f1d77456ed1412b015a0963f4682039f Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Libor Spevak <lspe...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Libor Spevak <lspe...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches