Ori Liel has posted comments on this change.

Change subject: engine: support non-unique vm and template names across DCs
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.ovirt.org/#/c/41263/2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmTemplateCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmTemplateCommand.java:

Line 104:                     if 
(isInstanceWithSameNameExists(getVmTemplateName())) {
Line 105:                         return 
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED);
Line 106:                     }
Line 107:                 } else {
Line 108:                     if 
(isVmTemlateWithSameNameExist(getVmTemplateName(), 
getVdsGroup().getStoragePoolId())) {
> - what about blank template? Newly the "Blank" template can be edited and r
I validated against null pointer. Renaming a template 'Blank' will fail because 
when dc-id is null it disregards DC, meaning it will look for this 
template-name ignoring DC context. When it will find that such a name exists, 
canDoAction will fail.
Line 109:                         return 
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED);
Line 110:                     }
Line 111:                 }
Line 112:             }


-- 
To view, visit https://gerrit.ovirt.org/41263
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I5f3244ec1885d54e58b475d0e74f59e26fa492a0
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ori Liel <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Ori Liel <[email protected]>
Gerrit-Reviewer: Tomas Jelinek <[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