summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-11-05 09:24:49 +0000
committerGerrit Code Review <review@openstack.org>2022-11-05 09:24:49 +0000
commitb0b47472d81b4f29ed70a0755434ac9e4a4b9f62 (patch)
tree7a515b3fdcd9dff2e9f819dc57de8381e0c35121 /openstackclient/common
parentae5f20c1ab58a49d951b3df696b98c4f10488650 (diff)
parent2da4aa99aaca3debcda1d046b7806a8f83ac8090 (diff)
downloadpython-openstackclient-b0b47472d81b4f29ed70a0755434ac9e4a4b9f62.tar.gz
Merge "quota: Fix issues with delete quota command"
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/quota.py6
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