Juan Hernandez has submitted this change and it was merged.

Change subject: cli: Calculate singulars and plurals correctly
......................................................................


cli: Calculate singulars and plurals correctly

Currently when we need to calculate singulars and plurals we just remove
or add a final "s". This doesn't work for names like "SchedulingPolicy"
and "SchedulingPolicies". This patch improves the calculations so that
they will work correctly for this type of names.

Change-Id: I4c7849dadd1161bfd435c7ae79d196c08b3e7e69
Bug-Url: https://bugzilla.redhat.com/1144110
Signed-off-by: Juan Hernandez <[email protected]>
---
M src/ovirtcli/command/add.py
M src/ovirtcli/command/command.py
M src/ovirtcli/utils/typehelper.py
3 files changed, 28 insertions(+), 23 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4c7849dadd1161bfd435c7ae79d196c08b3e7e69
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Ravi Nori <[email protected]>
Gerrit-Reviewer: [email protected]
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to