Tal Nisan has posted comments on this change.

Change subject: core,webadmin: Plug disk to VM when adding a new disk
......................................................................


Patch Set 3:

(2 comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddDiskCommand.java
Line 97:                     
!isDiskPassPciAndIdeLimit(getParameters().getDiskInfo())) {
Line 98:                 return false;
Line 99:             }
Line 100:         }
Line 101:         else if 
(Boolean.TRUE.equals(getParameters().getPlugDiskToVm())) {
false is also fine, one might set it in REST for a floating disk, I choose to 
accept it
Line 102:             return 
failCanDoAction(VdcBllMessages.CANNOT_ADD_FLOATING_DISK_WITH_PLUG_VM_SET);
Line 103:         }
Line 104: 
Line 105:         if (DiskStorageType.IMAGE == 
getParameters().getDiskInfo().getDiskStorageType()) {


Line 560:             params.setShouldBeLogged(false);
Line 561:             VdcReturnValueBase returnValue = 
Backend.getInstance().runInternalAction(VdcActionType.HotPlugDiskToVm, params);
Line 562:             if (!returnValue.getSucceeded()) {
Line 563:                 AuditLogDirector.log(this, 
AuditLogType.USER_FAILED_HOTPLUG_DISK);
Line 564:             }
It is ok since those are two different actions in that case
Line 565:         }
Line 566:     }
Line 567: 
Line 568:     @Override


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ia9778bcaf21b346a55992590159cabd8d78f0c66
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tal Nisan <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Cheryn Tan <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to