Change in ovirt-engine-cli[cli_3.5]: cli: Calculate singulars and plurals correctly
juan.hernandez at redhat.com
juan.hernandez at redhat.com
Fri Sep 26 07:13:19 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>
(cherry picked from commit cbcf83df88901eca7de9b99fbad90f0b7c549301)
---
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/33383
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: cli_3.5
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
More information about the Engine-commits
mailing list