From 806b90f6f112410a8e9ece07141e05f72e865d9b Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Wed, 19 Dec 2018 19:51:32 -0500 Subject: [PATCH] Log netconf connection a la paramiko (#50169) --- lib/ansible/plugins/connection/netconf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/connection/netconf.py b/lib/ansible/plugins/connection/netconf.py index 4f6edbe4a7e..b95f71dd84a 100644 --- a/lib/ansible/plugins/connection/netconf.py +++ b/lib/ansible/plugins/connection/netconf.py @@ -283,9 +283,12 @@ class Connection(NetworkConnectionBase): ssh_config = None try: + port = self._play_context.port or 830 + self.queue_message('vvv', "ESTABLISH NETCONF SSH CONNECTION FOR USER: %s on PORT %s TO %s" % + (self._play_context.remote_user, port, self._play_context.remote_addr)) self._manager = manager.connect( host=self._play_context.remote_addr, - port=self._play_context.port or 830, + port=port, username=self._play_context.remote_user, password=self._play_context.password, key_filename=self.key_filename,