[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 <sdoran@redhat.com>

* Add changelog
This commit is contained in:
Sam Doran 2018-12-03 20:02:43 -05:00 committed by Toshio Kuratomi
parent 47e0d29a59
commit 832aa98ace
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- paramiko_ssh - improve log message to state the connection type

View file

@ -305,7 +305,7 @@ class Connection(ConnectionBase):
raise AnsibleError("paramiko is not installed") raise AnsibleError("paramiko is not installed")
port = self._play_context.port or 22 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) host=self._play_context.remote_addr)
ssh = paramiko.SSHClient() ssh = paramiko.SSHClient()