From c6ca3cf7cb749806debad1e3015e004850fdfd2a Mon Sep 17 00:00:00 2001 From: wangxiyuan Date: Mon, 17 Jul 2017 09:21:32 +0800 Subject: Support skip-validation for quota update Support skip-validation parameter for quota update. Change-Id: Iec4f1598987c632f45ad6eee751f78bedbf3ec26 --- cinderclient/shell_utils.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cinderclient/shell_utils.py') 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)) -- cgit v1.2.1