Arik Hadas has posted comments on this change.

Change subject: core: Fix NPE on ChangeCD with 'Down' VM
......................................................................


Patch Set 1: Code-Review-1

(1 comment)

how about to take the opportunity to also organize this canDoAction method?

http://gerrit.ovirt.org/#/c/31614/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeDiskCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeDiskCommand.java:

Line 41:             retValue = false;
Line 42:             addCanDoActionMessage(VdcBllMessages.VAR__TYPE__VM);
Line 43: 
Line 44:             // An empty 'cdImagePath' means eject CD
Line 45:             if (!StringUtils.isEmpty(cdImagePath)) {
cdImagePath should be set before this line
Line 46:                 
addCanDoActionMessage(VdcBllMessages.VAR__ACTION__CHANGE_CD);
Line 47:             } else {
Line 48:                 
addCanDoActionMessage(VdcBllMessages.VAR__ACTION__EJECT_CD);
Line 49:             }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3bf10dbeb8dd645a515dc140bd9081dc1d1acab
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Betak <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Martin Betak <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to