diff options
author | Zuul <zuul@review.opendev.org> | 2019-09-01 00:43:29 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-09-01 00:43:29 +0000 |
commit | 25ae839e4cb7970ad1d432012fb3fd922b48b013 (patch) | |
tree | 594aebcbb12938e03ce75cc44b265e5fd6c8ca59 | |
parent | 67dcd422916937dbb17f6b901f318f10e5964313 (diff) | |
parent | 57301ecb744efcebb2e6b279a1bb1ac64a6e3dfb (diff) | |
download | python-cinderclient-25ae839e4cb7970ad1d432012fb3fd922b48b013.tar.gz |
Merge "Fix: Quota update successfully executes with no params"
-rw-r--r-- | cinderclient/shell_utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cinderclient/shell_utils.py b/cinderclient/shell_utils.py index e05d907..411dd17 100644 --- a/cinderclient/shell_utils.py +++ b/cinderclient/shell_utils.py @@ -247,6 +247,9 @@ def quota_update(manager, identifier, args): if not skip_validation: updates['skip_validation'] = skip_validation quota_show(manager.update(identifier, **updates)) + else: + msg = 'Must supply at least one quota field to update.' + raise exceptions.ClientException(code=1, message=msg) def find_volume_type(cs, vtype): |