Skip to content
Snippets Groups Projects
Unverified Commit 659fa0ed authored by Maxime Leroy's avatar Maxime Leroy Committed by GitHub
Browse files

feat(contrib/terraform): support custom ssh port (#9836)

parent 501deecd
Branches
Tags
No related merge requests found
......@@ -316,7 +316,9 @@ def openstack_host(resource, module_name):
# attrs specific to Ansible
if 'metadata.ssh_user' in raw_attrs:
attrs['ansible_ssh_user'] = raw_attrs['metadata.ssh_user']
attrs['ansible_user'] = raw_attrs['metadata.ssh_user']
if 'metadata.ssh_port' in raw_attrs:
attrs['ansible_port'] = raw_attrs['metadata.ssh_port']
if 'volume.#' in list(raw_attrs.keys()) and int(raw_attrs['volume.#']) > 0:
device_index = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment