Merge "admin authorize: Deprecate ineffective --overcloud-ssh-network"

This commit is contained in:
Zuul 2022-10-18 11:43:24 +00:00 committed by Gerrit Code Review
commit e386c3a054
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
The ``--overcloud-ssh-network`` option of the ``openstack admin authorize``
command has been deprecated. This option has has no effect.

View File

@ -55,7 +55,8 @@ class Authorize(command.Command):
)
parser.add_argument(
'--overcloud-ssh-network',
help=_('Network name to use for ssh access to overcloud nodes.'),
help=_('DEPRECATED: Network name to use for ssh access to '
'overcloud nodes. This has no effect now.'),
default='ctlplane'
)
parser.add_argument(
@ -101,6 +102,10 @@ class Authorize(command.Command):
'config-download',
parsed_args.stack)
if parsed_args.overcloud_ssh_network:
self.log.warning('The --overcloud-ssh-network option is '
'deprecated and has no effect now.')
if not parsed_args.static_inventory:
inventory = os.path.join(ansible_dir,
'tripleo-ansible-inventory.yaml')