From ab495d19168be60c759a4311c05b975070443a38 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 28 Aug 2014 08:21:09 -0500 Subject: [PATCH] Set the shell variable on the ssh connection type for accelerated mode Fixes #8799 --- lib/ansible/runner/connection_plugins/accelerate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/runner/connection_plugins/accelerate.py b/lib/ansible/runner/connection_plugins/accelerate.py index 3f35a325484..8277d805de2 100644 --- a/lib/ansible/runner/connection_plugins/accelerate.py +++ b/lib/ansible/runner/connection_plugins/accelerate.py @@ -80,6 +80,9 @@ class Connection(object): private_key_file=private_key_file ) + if not getattr(self.ssh, 'shell', None): + self.ssh.shell = utils.plugins.shell_loader.get('sh') + # attempt to work around shared-memory funness if getattr(self.runner, 'aes_keys', None): utils.AES_KEYS = self.runner.aes_keys