diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2017-07-19 18:40:08 -0700 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2017-07-21 11:55:43 -0400 |
commit | 007a3b9c9b1ec1afa043a7e4227323c32be31342 (patch) | |
tree | 351f3375deee427acc787a2fe346fe37cbb97bd7 /lib/ansible/plugins/connection/ssh.py | |
parent | 70f52e304371ac01df0b9f468602acb9e745024a (diff) | |
download | ansible-007a3b9c9b1ec1afa043a7e4227323c32be31342.tar.gz |
Don't need to convert cmd to bytes as it is already an array of bytes
Fixes #27016
Diffstat (limited to 'lib/ansible/plugins/connection/ssh.py')
-rw-r--r-- | lib/ansible/plugins/connection/ssh.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/connection/ssh.py b/lib/ansible/plugins/connection/ssh.py index 46f734da28..1339af7449 100644 --- a/lib/ansible/plugins/connection/ssh.py +++ b/lib/ansible/plugins/connection/ssh.py @@ -892,7 +892,7 @@ class Connection(ConnectionBase): def reset(self): # If we have a persistent ssh connection (ControlPersist), we can ask it to stop listening. - cmd = map(to_bytes, self._build_command(self._play_context.ssh_executable, '-O', 'stop', self.host)) + cmd = self._build_command(self._play_context.ssh_executable, '-O', 'stop', self.host) controlpersist, controlpath = self._persistence_controls(cmd) if controlpersist: display.vvv(u'sending stop: %s' % cmd) |