summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorTerryHowe <terrylhowe@gmail.com>2015-08-11 14:40:53 -0600
committerTerryHowe <terrylhowe@gmail.com>2015-08-11 14:40:53 -0600
commitb1ce0356f2e6fc4e36471394d0f871a3d1e6d2e5 (patch)
tree1dbd87f1313fc4a3be03527ae7f7b50f28c52ac9 /openstackclient/common
parent0cc1e5aa2b7ff7fa55e6083a397c07fc1cc744dd (diff)
downloadpython-openstackclient-b1ce0356f2e6fc4e36471394d0f871a3d1e6d2e5.tar.gz
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
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/quota.py3
1 files changed, 1 insertions, 2 deletions
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