Set the shell variable on the ssh connection type for accelerated mode

Fixes #8799
This commit is contained in:
James Cammarata 2014-08-28 08:21:09 -05:00
parent 99ba9d6e24
commit ab495d1916

View file

@ -80,6 +80,9 @@ class Connection(object):
private_key_file=private_key_file 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 # attempt to work around shared-memory funness
if getattr(self.runner, 'aes_keys', None): if getattr(self.runner, 'aes_keys', None):
utils.AES_KEYS = self.runner.aes_keys utils.AES_KEYS = self.runner.aes_keys