summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorRichard Theis <rtheis@us.ibm.com>2015-11-20 12:49:17 -0600
committerRichard Theis <rtheis@us.ibm.com>2015-11-20 13:08:42 -0600
commit99498b0ab3f8a131fca3663f170d746d8bb090ae (patch)
treef894cc2b35c49e1e6f95d3f92e6e1230b3fb055f /openstackclient/common
parent65e6c7bc63d1a2137ae454f792b17feba7fab9b8 (diff)
downloadpython-openstackclient-99498b0ab3f8a131fca3663f170d746d8bb090ae.tar.gz
Unable to set some compute quotas
The OpenStackClient mapping of 'openstack quota set' arguments isn't correct for compute quota items that have to different names. For example, the --injected-file-size argument is mapped to injected_file_size, but the compute quotas item is actually injected_file_content_bytes. This incorrect mapping prevented the impacted compute quota items from being set. The problem impacts the following 'openstack quota set' arguments: --injected-file-size --injected-path-size --properties --secgroup-rules --secgroups This patch set also expands the compute quota unit tests to verify all compute quota items that can be set. Change-Id: I0a2f241e425f4811e4ae55be183ac0c8b0805c2a Closes-Bug: #1475831
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/quota.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py
index b5d4eb87..c5404f07 100644
--- a/openstackclient/common/quota.py
+++ b/openstackclient/common/quota.py
@@ -81,6 +81,7 @@ class SetQuota(command.Command):
parser.add_argument(
'--%s' % v,
metavar='<%s>' % v,
+ dest=k,
type=int,
help='New value for the %s quota' % v,
)