Change in ovirt-engine[master]: restapi: Calculate singulars correctly

juan.hernandez at redhat.com juan.hernandez at redhat.com
Mon Feb 9 09:54:47 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Calculate singulars correctly
......................................................................


restapi: Calculate singulars correctly

The RSDL generator doesn't calculate singulars correctly. For example,
for the plural form "schedulingpolicies" it calculats the singular as
"schedulingpolicie". This is incorrect and doesn't match with the
singular form specified in the RSDL metadata. As a result the parameter
metadata for some entities and collections, in particular for scheduling
policy related entities and collections, isn't generated. As a result of
that the Python SDK doesn't contain the metadata, and thus the CLI
auto-completion doesn't work. This patch fixes the RSDL generator so
that singulars will be calculated correctly.

Change-Id: Ifbd00642de18637e2620433395b3065a062a4ee9
Bug-Url: https://bugzilla.redhat.com/1189095
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/rsdl/RsdlBuilder.java
1 file changed, 8 insertions(+), 2 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Moti Asayag: Looks good to me, but someone else must approve



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifbd00642de18637e2620433395b3065a062a4ee9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list