From 626a3a021c50759841804eeb9aad832ea9e57551 Mon Sep 17 00:00:00 2001 From: Matt Riedemann <mriedem.os@gmail.com> Date: Fri, 8 Jun 2018 16:59:08 -0400 Subject: [PATCH] Mention compute API 2.50 in openstack quota show --class There is a bug in the compute API until microversion 2.50 where the server-groups and server-group-members class quota fields aren't returned. This just mentions that microversion in the command help text. Change-Id: I029a614a922d642c578618c478c4d0a29a394fc2 Task: 21490 Story: 2002194 --- doc/source/cli/command-objects/quota.rst | 4 +++- openstackclient/common/quota.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/source/cli/command-objects/quota.rst b/doc/source/cli/command-objects/quota.rst index c538cfb3dd..8c8cea6ddd 100644 --- a/doc/source/cli/command-objects/quota.rst +++ b/doc/source/cli/command-objects/quota.rst @@ -244,7 +244,9 @@ Set quotas for class quota show ---------- -Show quotas for project or class +Show quotas for project or class. Specify ``--os-compute-api-version 2.50`` or +higher to see ``server-groups`` and ``server-group-members`` output for a given +quota class. .. program:: quota show .. code:: bash diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py index dba6873ff9..dae1b18e39 100644 --- a/openstackclient/common/quota.py +++ b/openstackclient/common/quota.py @@ -570,7 +570,10 @@ class SetQuota(command.Command): class ShowQuota(command.ShowOne, BaseQuota): - _description = _("Show quotas for project or class") + _description = _( + "Show quotas for project or class. Specify " + "``--os-compute-api-version 2.50`` or higher to see ``server-groups`` " + "and ``server-group-members`` output for a given quota class.") def get_parser(self, prog_name): parser = super(ShowQuota, self).get_parser(prog_name)