From b1ce0356f2e6fc4e36471394d0f871a3d1e6d2e5 Mon Sep 17 00:00:00 2001 From: TerryHowe Date: Tue, 11 Aug 2015 14:40:53 -0600 Subject: Add tests for volume quota set Add some tests for volume quota set and get rid of TODO about using the value instead of the key to get the attribute. Change-Id: I57aa57951aeea65965966e63af922cda532d759d --- openstackclient/common/quota.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'openstackclient/common') diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py index e79fd7ed..c1ff3792 100644 --- a/openstackclient/common/quota.py +++ b/openstackclient/common/quota.py @@ -103,8 +103,7 @@ class SetQuota(command.Command): volume_kwargs = {} for k, v in VOLUME_QUOTAS.items(): - # TODO(jiaxi): Should use k or v needs discuss - value = getattr(parsed_args, v, None) + value = getattr(parsed_args, k, None) if value is not None: if parsed_args.volume_type: k = k + '_%s' % parsed_args.volume_type -- cgit v1.2.1