diff options
| author | Zuul <zuul@review.opendev.org> | 2020-07-06 20:50:24 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-07-06 20:50:24 +0000 |
| commit | d0741d78533ae5f538f3f0be0a8a0035581745cc (patch) | |
| tree | 6256325fd9c03b7769d39aaff3e498487c5b5f09 /openstackclient/common | |
| parent | 1d8781a3690aec93570d0f0bb3bfe43905f49196 (diff) | |
| parent | b328cf74df7f94a20de85b3c0992dcb65e818458 (diff) | |
| download | python-openstackclient-d0741d78533ae5f538f3f0be0a8a0035581745cc.tar.gz | |
Merge "Add '--force; parameter to 'openstack quota set'"
Diffstat (limited to 'openstackclient/common')
| -rw-r--r-- | openstackclient/common/quota.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py index 71b8ea61..11de986b 100644 --- a/openstackclient/common/quota.py +++ b/openstackclient/common/quota.py @@ -525,6 +525,11 @@ class SetQuota(common.NetDetectionMixin, command.Command): metavar='<volume-type>', help=_('Set quotas for a specific <volume-type>'), ) + parser.add_argument( + '--force', + action='store_true', + help=_('Force quota update (only supported by compute)') + ) return parser def take_action(self, parsed_args): @@ -538,6 +543,9 @@ class SetQuota(common.NetDetectionMixin, command.Command): if value is not None: compute_kwargs[k] = value + if parsed_args.force: + compute_kwargs['force'] = True + volume_kwargs = {} for k, v in VOLUME_QUOTAS.items(): value = getattr(parsed_args, k, None) |
