Change in ovirt-engine-cli[master]: cli: Calculate singulars and plurals correctly

juan.hernandez at redhat.com juan.hernandez at redhat.com
Fri Sep 26 07:09:57 UTC 2014


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 <juan.hernandez at redhat.com>
---
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 <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ravi Nori <rnori at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list