diff options
Diffstat (limited to 'ansible_collections/cloud/common/plugins/plugin_utils')
-rw-r--r-- | ansible_collections/cloud/common/plugins/plugin_utils/turbo/lookup.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ansible_collections/cloud/common/plugins/plugin_utils/turbo/lookup.py b/ansible_collections/cloud/common/plugins/plugin_utils/turbo/lookup.py index 30adc1e96..627f665fc 100644 --- a/ansible_collections/cloud/common/plugins/plugin_utils/turbo/lookup.py +++ b/ansible_collections/cloud/common/plugins/plugin_utils/turbo/lookup.py @@ -74,12 +74,14 @@ class TurboLookupBase(LookupBase): idx = name.find(lookup_plugins) if idx != -1: name = name[:idx] + self.__socket_path = os.environ[ "HOME" ] + "/.ansible/tmp/turbo_lookup.{0}.socket".format(name) return self.__socket_path def execute(self, terms, variables=None, **kwargs): + result = None with ansible_collections.cloud.common.plugins.module_utils.turbo.common.connect( socket_path=self.socket_path, ttl=self._ttl, plugin="lookup" ) as turbo_socket: @@ -87,4 +89,5 @@ class TurboLookupBase(LookupBase): (result, errors) = turbo_socket.communicate(content) if errors: raise EmbeddedModuleUnexpectedFailure(errors) + return result |