fix for psuedo-connection hostvars not propagating to connection

(mostly done by jimi-c, tested working)
This commit is contained in:
nitzmahone 2016-06-10 10:13:53 -07:00
parent 04ce71b4bd
commit ece1ed09d5
3 changed files with 8 additions and 10 deletions

View file

@ -112,7 +112,7 @@ class ConnectionBase(with_metaclass(ABCMeta, object)):
raise AnsibleError("Internal Error: this connection module does not support running commands via %s" % self._play_context.become_method)
def set_host_overrides(self, host):
def set_host_overrides(self, host, hostvars=None):
'''
An optional method, which can be used to set connection plugin parameters
from variables set on the host (or groups to which the host belongs)