Skip to content

Commit 181f143

Browse files
committed
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
1 parent e8c7315 commit 181f143

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

openstackclient/compute/v2/server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,9 @@ def get_parser(self, prog_name):
977977
parser.add_argument(
978978
'--ip6',
979979
metavar='<ip-address-regex>',
980-
help=_('Regular expression to match IPv6 addresses'),
980+
help=_('Regular expression to match IPv6 addresses. Note '
981+
'that this option only applies for non-admin users '
982+
'when using ``--os-compute-api-version`` 2.5 or greater.'),
981983
)
982984
parser.add_argument(
983985
'--name',

0 commit comments

Comments
 (0)