diff options
| author | Zuul <zuul@review.opendev.org> | 2022-11-05 09:24:49 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2022-11-05 09:24:49 +0000 |
| commit | b0b47472d81b4f29ed70a0755434ac9e4a4b9f62 (patch) | |
| tree | 7a515b3fdcd9dff2e9f819dc57de8381e0c35121 /openstackclient/common | |
| parent | ae5f20c1ab58a49d951b3df696b98c4f10488650 (diff) | |
| parent | 2da4aa99aaca3debcda1d046b7806a8f83ac8090 (diff) | |
| download | python-openstackclient-b0b47472d81b4f29ed70a0755434ac9e4a4b9f62.tar.gz | |
Merge "quota: Fix issues with delete quota command"
Diffstat (limited to 'openstackclient/common')
| -rw-r--r-- | openstackclient/common/quota.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py index 10f40a75..f2d097fc 100644 --- a/openstackclient/common/quota.py +++ b/openstackclient/common/quota.py @@ -972,12 +972,12 @@ class DeleteQuota(command.Command): # compute quotas if parsed_args.service in {'all', 'compute'}: compute_client = self.app.client_manager.compute - compute_client.quotas.delete(project) + compute_client.quotas.delete(project.id) # volume quotas if parsed_args.service in {'all', 'volume'}: volume_client = self.app.client_manager.volume - volume_client.quotas.delete(project) + volume_client.quotas.delete(project.id) # network quotas (but only if we're not using nova-network, otherwise # we already deleted the quotas in the compute step) @@ -986,6 +986,6 @@ class DeleteQuota(command.Command): and self.app.client_manager.is_network_endpoint_enabled() ): network_client = self.app.client_manager.network - network_client.quotas.delete(project) + network_client.delete_quota(project.id) return None |
