1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Save the original transport in runner after detecting the smart transport

Fixes #6192
This commit is contained in:
James Cammarata 2014-02-27 10:29:38 -06:00
parent 956eb91de0
commit c11e2100e0

View file

@ -193,7 +193,6 @@ class Runner(object):
self.accelerate_port = accelerate_port
self.accelerate_ipv6 = accelerate_ipv6
self.callbacks.runner = self
self.original_transport = self.transport
self.su = su
self.su_user_var = su_user
self.su_user = None
@ -211,6 +210,9 @@ class Runner(object):
else:
self.transport = "ssh"
# save the original transport, in case it gets
# changed later via options like accelerate
self.original_transport = self.transport
# misc housekeeping
if subset and self.inventory._subset is None: