diff options
author | wangxiyuan <wangxiyuan@huawei.com> | 2017-07-17 09:21:32 +0800 |
---|---|---|
committer | wangxiyuan <wangxiyuan@huawei.com> | 2017-07-18 01:03:06 +0000 |
commit | c6ca3cf7cb749806debad1e3015e004850fdfd2a (patch) | |
tree | 1b429e046abdea30a3a0c4c7923e92b45ca5f171 /cinderclient/shell_utils.py | |
parent | f3a1e6e7087899118028a270004bfa519fc8c16e (diff) | |
download | python-cinderclient-c6ca3cf7cb749806debad1e3015e004850fdfd2a.tar.gz |
Support skip-validation for quota update
Support skip-validation parameter for quota update.
Change-Id: Iec4f1598987c632f45ad6eee751f78bedbf3ec26
Diffstat (limited to 'cinderclient/shell_utils.py')
-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 35802f8..606bfd0 100644 --- a/cinderclient/shell_utils.py +++ b/cinderclient/shell_utils.py @@ -237,6 +237,9 @@ def quota_update(manager, identifier, args): updates[resource] = val if updates: + skip_validation = getattr(args, 'skip_validation', True) + if not skip_validation: + updates['skip_validation'] = skip_validation quota_show(manager.update(identifier, **updates)) |