summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ansible-connection2
-rw-r--r--test/integration/targets/junos_netconf/tests/cli/changeport.yaml2
-rw-r--r--test/integration/targets/junos_netconf/tests/cli/netconf.yaml2
3 files changed, 3 insertions, 3 deletions
diff --git a/bin/ansible-connection b/bin/ansible-connection
index fde1883e1f..073de82af5 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 ce153fad92..1e4c81bf9e 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 56bf64ce8b..b53df7152c 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: