summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-09-19 03:03:05 +0000
committerGerrit Code Review <review@openstack.org>2015-09-19 03:03:05 +0000
commit6de1af116126c23f9ea8207b70d00724d51127a0 (patch)
treec11683159a3c7e6f49b5d4d8adfe6fb5f251d806 /openstackclient/common
parent0116f3abc6c523d721960d838d9dd67535ebc1c2 (diff)
parentb1ce0356f2e6fc4e36471394d0f871a3d1e6d2e5 (diff)
downloadpython-openstackclient-6de1af116126c23f9ea8207b70d00724d51127a0.tar.gz
Merge "Add tests for volume quota set"
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 65367e03..e092feff 100644
--- a/openstackclient/common/quota.py
+++ b/openstackclient/common/quota.py
@@ -105,8 +105,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