Ayal Baron has posted comments on this change. Change subject: core: fix err msg-add disk to locked VM (#865551) ......................................................................
Patch Set 1: (1 inline comment) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddDiskCommand.java Line 82: boolean returnValue = isVmExist() && acquireLockInternal(); Line 83: VM vm = getVm(); Line 84: if (returnValue && (vm != null && vm.getstatus() == VMStatus.ImageLocked)) { Line 85: returnValue = false; Line 86: addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_LOCKED); why this change and not just specify which disks are locked which would provide more info to the user? Line 87: } else { Line 88: // if user sent drive check that its not in use Line 89: returnValue = returnValue && (vm == null || isDiskCanBeAddedToVm(getParameters().getDiskInfo())); Line 90: if (returnValue && DiskStorageType.IMAGE == getParameters().getDiskInfo().getDiskStorageType()) { -- To view, visit http://gerrit.ovirt.org/8666 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ib7a82d91b0ee51ebd1a612dbf210e0ea4533e746 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Vered Volansky <vvola...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Ayal Baron <aba...@redhat.com> Gerrit-Reviewer: Liron Aravot <lara...@redhat.com> Gerrit-Reviewer: Michael Kublin <mkub...@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