From 832aa98ace45fea8bb015051147d121ac437ec06 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Mon, 3 Dec 2018 20:02:43 -0500 Subject: [PATCH] [stable-2.7] Improve log message in paramiko_ssh connection plugin (#49004) (#49318) * [stable-2.7] Improve log message (#49004) This is the only connection plugin that doesn't state explicitly what it is in the log. (cherry picked from commit 8f9ced4005) Co-authored-by: Sam Doran * Add changelog --- changelogs/fragments/parimko_ssh-log-message.yaml | 2 ++ lib/ansible/plugins/connection/paramiko_ssh.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/parimko_ssh-log-message.yaml diff --git a/changelogs/fragments/parimko_ssh-log-message.yaml b/changelogs/fragments/parimko_ssh-log-message.yaml new file mode 100644 index 00000000000..e757e8ac36c --- /dev/null +++ b/changelogs/fragments/parimko_ssh-log-message.yaml @@ -0,0 +1,2 @@ +bugfixes: + - paramiko_ssh - improve log message to state the connection type diff --git a/lib/ansible/plugins/connection/paramiko_ssh.py b/lib/ansible/plugins/connection/paramiko_ssh.py index 2019155d72f..1c02b9c0e7d 100644 --- a/lib/ansible/plugins/connection/paramiko_ssh.py +++ b/lib/ansible/plugins/connection/paramiko_ssh.py @@ -305,7 +305,7 @@ class Connection(ConnectionBase): raise AnsibleError("paramiko is not installed") port = self._play_context.port or 22 - display.vvv("ESTABLISH CONNECTION FOR USER: %s on PORT %s TO %s" % (self._play_context.remote_user, port, self._play_context.remote_addr), + display.vvv("ESTABLISH PARAMIKO SSH CONNECTION FOR USER: %s on PORT %s TO %s" % (self._play_context.remote_user, port, self._play_context.remote_addr), host=self._play_context.remote_addr) ssh = paramiko.SSHClient()