diff --git a/bin/ansible-connection b/bin/ansible-connection index fde1883e1fb..073de82af57 100755 --- a/bin/ansible-connection +++ b/bin/ansible-connection @@ -292,7 +292,7 @@ def main(): sys.exit("FAIL: %s" % e) ssh = connection_loader.get('ssh', class_only=True) - cp = ssh._create_control_path(pc.remote_addr, pc.connection, pc.remote_user) + cp = ssh._create_control_path(pc.remote_addr, pc.port, pc.remote_user) # create the persistent connection dir if need be and create the paths # which we will be using later diff --git a/test/integration/targets/junos_netconf/tests/cli/changeport.yaml b/test/integration/targets/junos_netconf/tests/cli/changeport.yaml index ce153fad924..1e4c81bf9ed 100644 --- a/test/integration/targets/junos_netconf/tests/cli/changeport.yaml +++ b/test/integration/targets/junos_netconf/tests/cli/changeport.yaml @@ -49,7 +49,7 @@ - assert: that: - "result.failed == true" - - "'unable to connect to' in result.msg" + - "'unable to open shell' in result.msg" - name: Set back netconf to default port junos_netconf: diff --git a/test/integration/targets/junos_netconf/tests/cli/netconf.yaml b/test/integration/targets/junos_netconf/tests/cli/netconf.yaml index 56bf64ce8be..b53df7152c7 100644 --- a/test/integration/targets/junos_netconf/tests/cli/netconf.yaml +++ b/test/integration/targets/junos_netconf/tests/cli/netconf.yaml @@ -61,7 +61,7 @@ - assert: that: - "result.failed == true" - - "'unable to connect to' in result.msg" + - "'unable to open shell' in result.msg" - name: re-enable netconf junos_netconf: