summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-08-06 07:34:08 +0000
committerGerrit Code Review <review@openstack.org>2015-08-06 07:34:08 +0000
commitd87403a7bf868d96c6c3185a59ac9bac4ba264fa (patch)
treeee4cc8bf87e6fb9d7f6b7ce543cdd7ce11b8d2aa /openstackclient/common
parentc5b31f3c6a88e6b4d3b6be90ae7119efc500488c (diff)
parent77214c56e78dff60cdaf8fa2a446fd9658261cbf (diff)
downloadpython-openstackclient-d87403a7bf868d96c6c3185a59ac9bac4ba264fa.tar.gz
Merge "Fix quota set failed problem"
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/quota.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py
index 4963eeac..e79fd7ed 100644
--- a/openstackclient/common/quota.py
+++ b/openstackclient/common/quota.py
@@ -97,12 +97,13 @@ class SetQuota(command.Command):
compute_kwargs = {}
for k, v in COMPUTE_QUOTAS.items():
- value = getattr(parsed_args, v, None)
+ value = getattr(parsed_args, k, None)
if value is not None:
compute_kwargs[k] = value
volume_kwargs = {}
for k, v in VOLUME_QUOTAS.items():
+ # TODO(jiaxi): Should use k or v needs discuss
value = getattr(parsed_args, v, None)
if value is not None:
if parsed_args.volume_type: