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:
parent
956eb91de0
commit
c11e2100e0
1 changed files with 3 additions and 1 deletions
|
@ -193,7 +193,6 @@ class Runner(object):
|
||||||
self.accelerate_port = accelerate_port
|
self.accelerate_port = accelerate_port
|
||||||
self.accelerate_ipv6 = accelerate_ipv6
|
self.accelerate_ipv6 = accelerate_ipv6
|
||||||
self.callbacks.runner = self
|
self.callbacks.runner = self
|
||||||
self.original_transport = self.transport
|
|
||||||
self.su = su
|
self.su = su
|
||||||
self.su_user_var = su_user
|
self.su_user_var = su_user
|
||||||
self.su_user = None
|
self.su_user = None
|
||||||
|
@ -211,6 +210,9 @@ class Runner(object):
|
||||||
else:
|
else:
|
||||||
self.transport = "ssh"
|
self.transport = "ssh"
|
||||||
|
|
||||||
|
# save the original transport, in case it gets
|
||||||
|
# changed later via options like accelerate
|
||||||
|
self.original_transport = self.transport
|
||||||
|
|
||||||
# misc housekeeping
|
# misc housekeeping
|
||||||
if subset and self.inventory._subset is None:
|
if subset and self.inventory._subset is None:
|
||||||
|
|
Loading…
Reference in a new issue