Alissa Bonas has posted comments on this change.

Change subject: core: Cleanup AttachDiskToVmCommand.canDoAction()
......................................................................


Patch Set 2: (1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AttachDiskToVmCommand.java
Line 68:         }
Line 69: 
Line 70:         if (!isVmExist() || !isVmUpOrDown() || 
!isDiskCanBeAddedToVm(disk)
Line 71:                 || !isDiskPassPciAndIdeLimit(disk)) {
Line 72:             return false;
Before the change, here it was not an early exit, just assigning to retValue. 
And now it returns here, without a clear error message - it is OK?
Line 73:         }
Line 74: 
Line 75:         if (getVmDeviceDao().exists(new VmDeviceId(disk.getId(), 
getVmId()))) {
Line 76:             return 
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_DISK_ALREADY_ATTACHED);


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I6cb0cc87c82387e8b1dcac0142f3625a4cc232d2
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to