mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Don't need to convert cmd to bytes as it is already an array of bytes
Fixes #27016
This commit is contained in:
committed by
Brian Coca
parent
70f52e3043
commit
007a3b9c9b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user