Merge "Don't create empty quota set requests"

This commit is contained in:
Jenkins
2015-05-06 15:44:40 +00:00
committed by Gerrit Code Review

View File

@@ -97,8 +97,9 @@ class SetQuota(command.Command):
compute_kwargs = {} compute_kwargs = {}
for k, v in COMPUTE_QUOTAS.items(): for k, v in COMPUTE_QUOTAS.items():
if v in parsed_args: value = getattr(parsed_args, v, None)
compute_kwargs[k] = getattr(parsed_args, v, None) if value is not None:
compute_kwargs[k] = value
volume_kwargs = {} volume_kwargs = {}
for k, v in VOLUME_QUOTAS.items(): for k, v in VOLUME_QUOTAS.items():