diff options
| author | Richard Theis <rtheis@us.ibm.com> | 2015-11-20 12:49:17 -0600 |
|---|---|---|
| committer | Richard Theis <rtheis@us.ibm.com> | 2015-11-20 13:08:42 -0600 |
| commit | 99498b0ab3f8a131fca3663f170d746d8bb090ae (patch) | |
| tree | f894cc2b35c49e1e6f95d3f92e6e1230b3fb055f /openstackclient/common | |
| parent | 65e6c7bc63d1a2137ae454f792b17feba7fab9b8 (diff) | |
| download | python-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.py | 1 |
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, ) |
