From 9d9c0dfa696d0f56b2a7eeda2daa2ffc9c723f9c Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Sat, 19 Mar 2016 11:13:38 -0700 Subject: [PATCH] Add missing to_bytes for cmd. --- lib/ansible/plugins/connection/paramiko_ssh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/plugins/connection/paramiko_ssh.py b/lib/ansible/plugins/connection/paramiko_ssh.py index 058b13800a5..7f605d01753 100644 --- a/lib/ansible/plugins/connection/paramiko_ssh.py +++ b/lib/ansible/plugins/connection/paramiko_ssh.py @@ -220,6 +220,8 @@ class Connection(ConnectionBase): display.vvv("EXEC %s" % cmd, host=self._play_context.remote_addr) + cmd = to_bytes(cmd, errors='strict') + no_prompt_out = '' no_prompt_err = '' become_output = ''