diff options
Diffstat (limited to 'designateclient/v2/cli/quotas.py')
-rw-r--r-- | designateclient/v2/cli/quotas.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/designateclient/v2/cli/quotas.py b/designateclient/v2/cli/quotas.py index c015080..a6fcda7 100644 --- a/designateclient/v2/cli/quotas.py +++ b/designateclient/v2/cli/quotas.py @@ -53,9 +53,10 @@ class ListQuotasCommand(show.ShowOne): client = self.app.client_manager.dns common.set_all_common_headers(client, parsed_args) - proj_id = parsed_args.project_id or client.session.get_project_id() + proj_id = client.session.get_project_id() - if parsed_args.project_id != client.session.get_project_id(): + if parsed_args.project_id and parsed_args.project_id != proj_id: + proj_id = parsed_args.project_id common.set_all_projects(client, True) data = client.quotas.list(proj_id) |