Vered Volansky has posted comments on this change. Change subject: backend, restapi: Add read-only disk functionality ......................................................................
Patch Set 15: (1 comment) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmDiskCommand.java Line 122: @Override Line 123: protected boolean canDoAction() { Line 124: if (!isVmExist() || !isDiskExist(getOldDisk())) { Line 125: return false; Line 126: } else { So you didn't mean to do that :) Some people say that for future code changes easily enters bugs when the else is missing, so with that reasoning I don't want to argue, but there are so few of them I had to ask. Line 127: getOldDisk().setReadOnly(vmDeviceForVm.getIsReadOnly()); Line 128: } Line 129: Line 130: if (!canRunActionOnNonManagedVm()) { -- To view, visit http://gerrit.ovirt.org/15409 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I124176e8feb91b601a71e76dd63051648ec4353a Gerrit-PatchSet: 15 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Vered Volansky <vvola...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Liron Ar <lara...@redhat.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Michael Pasternak <mpast...@redhat.com> Gerrit-Reviewer: Sergey Gotliv <sgot...@redhat.com> Gerrit-Reviewer: Tal Nisan <tni...@redhat.com> Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches