Set undercloud-connection to local by default

This patch fixes the right default for the 'undercloud-connection' option
according to the help message.

Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
Co-Authored-By: Jose Luis Franco <jfrancoa@redhat.com>

Change-Id: Ib0eb19ddd2968ab328565dec3171f480327be27f
(cherry picked from commit d253d52f3f)
This commit is contained in:
Gael Chamoulaud 2019-04-19 13:26:04 +02:00 committed by Sergii Golovatiuk
parent 83f84fa6cf
commit 4c795bb434
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ opts = [
'will take precedence.')),
cfg.StrOpt('ansible_ssh_user', default=os.environ.get('ANSIBLE_SSH_USER',
'heat-admin')),
cfg.StrOpt('undercloud-connection', default=inv.UNDERCLOUD_CONNECTION_SSH,
cfg.StrOpt('undercloud-connection',
default=inv.UNDERCLOUD_CONNECTION_LOCAL,
help=('Ansible connection to the undercloud, either "local" '
'or "ssh". Defaults to "local".')),
cfg.StrOpt('undercloud-key-file', default=None),