Moti Asayag has posted comments on this change.
Change subject: core: cleanup AddVmPoolWithVmsCommand#getJobMessageProperties
......................................................................
Patch Set 1: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmPoolWithVmsCommand.java
Line 83: public Map<String, String> getJobMessageProperties() {
Line 84: if (jobProperties == null) {
Line 85: jobProperties = new HashMap<String, String>();
Line 86: VmPool vmPool = getParameters().getVmPool();
Line 87: String vmPoolName = vmPool != null ?
vmPool.getVmPoolName() : StringUtils.EMPTY;
would you consider going the positive way ?
String vmPoolName = vmPool == null ? StringUtils.EMPTY : vmPool.getVmPoolName();
Line 88:
jobProperties.put(VdcObjectType.VmPool.name().toLowerCase(), vmPoolName);
Line 89: Guid vmTemplateId = getVmTemplateId();
Line 90: String templateName = getVmTemplateName();
Line 91: if (StringUtils.isEmpty(templateName)) {
--
To view, visit http://gerrit.ovirt.org/11983
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1513f901b7c5ef2b3d215ff119e0f69240c9411a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches