diff options
| author | Matt Riedemann <mriedem.os@gmail.com> | 2018-06-08 10:13:10 -0400 |
|---|---|---|
| committer | Matt Riedemann <mriedem.os@gmail.com> | 2018-06-08 10:13:10 -0400 |
| commit | 181f14319bac0917fcbe5f232cae0603c6939d10 (patch) | |
| tree | e8b57b117ad02acef3a04c3b5c08152749c8c450 /openstackclient | |
| parent | e8c731547d85b1241c7898d2fb77b8d635901dfd (diff) | |
| download | python-openstackclient-181f14319bac0917fcbe5f232cae0603c6939d10.tar.gz | |
Add note about version 2.5 when listing servers using --ip6
The --ip6 filter when listing servers as a non-admin user
only applies when also using --os-compute-api-microversion
2.5 or greater. This change simply adds a note about that in
the --ip6 option help text.
We could probably get more sophisticated by trying to determine
if the user has the admin role or not and if not, and using --ip6
without microversion >= 2.5, we could error out, but that seems
excessive at this point.
Change-Id: I665c64e0bdac04c695fa119a479df43f70b0fa62
Story: #2002184
Task: #20057
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/compute/v2/server.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openstackclient/compute/v2/server.py b/openstackclient/compute/v2/server.py index c80b5a3c..c414f7e1 100644 --- a/openstackclient/compute/v2/server.py +++ b/openstackclient/compute/v2/server.py @@ -977,7 +977,9 @@ class ListServer(command.Lister): parser.add_argument( '--ip6', metavar='<ip-address-regex>', - help=_('Regular expression to match IPv6 addresses'), + help=_('Regular expression to match IPv6 addresses. Note ' + 'that this option only applies for non-admin users ' + 'when using ``--os-compute-api-version`` 2.5 or greater.'), ) parser.add_argument( '--name', |
