From c11e2100e0529d43b9504d00458226564fc8e6f4 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 27 Feb 2014 10:29:38 -0600 Subject: [PATCH] Save the original transport in runner after detecting the smart transport Fixes #6192 --- lib/ansible/runner/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index aaf9c8b18c..75b91a2c6f 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -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: