diff options
| author | Stephen Finucane <sfinucan@redhat.com> | 2022-10-07 17:12:39 +0100 |
|---|---|---|
| committer | Stephen Finucane <sfinucan@redhat.com> | 2022-10-11 16:41:28 +0100 |
| commit | 2da4aa99aaca3debcda1d046b7806a8f83ac8090 (patch) | |
| tree | ed5bc75e24e3062cd9e0d697655fd6137abcb3bc /openstackclient/common | |
| parent | 1aaaa6f1d14ebc2498513aabe788239c9f867639 (diff) | |
| download | python-openstackclient-2da4aa99aaca3debcda1d046b7806a8f83ac8090.tar.gz | |
quota: Fix issues with delete quota command
We were passing a project object rather than just the ID. Also correct a
typo in the call to delete network quotas.
Change-Id: I2292db7932ec01026f0e54014e3d02218792617a
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
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 |
