mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 15:31:03 +00:00
Merge "Don't create empty quota set requests"
This commit is contained in:
commit
a6deef6ef1
1 changed files with 3 additions and 2 deletions
|
|
@ -97,8 +97,9 @@ class SetQuota(command.Command):
|
|||
|
||||
compute_kwargs = {}
|
||||
for k, v in COMPUTE_QUOTAS.items():
|
||||
if v in parsed_args:
|
||||
compute_kwargs[k] = getattr(parsed_args, v, None)
|
||||
value = getattr(parsed_args, v, None)
|
||||
if value is not None:
|
||||
compute_kwargs[k] = value
|
||||
|
||||
volume_kwargs = {}
|
||||
for k, v in VOLUME_QUOTAS.items():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue