summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cloud/common/plugins/plugin_utils
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:22 +0000
commit38b7c80217c4e72b1d8988eb1e60bb6e77334114 (patch)
tree356e9fd3762877d07cde52d21e77070aeff7e789 /ansible_collections/cloud/common/plugins/plugin_utils
parentAdding upstream version 7.7.0+dfsg. (diff)
downloadansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.tar.xz
ansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.zip
Adding upstream version 9.4.0+dfsg.upstream/9.4.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cloud/common/plugins/plugin_utils')
-rw-r--r--ansible_collections/cloud/common/plugins/plugin_utils/turbo/lookup.py3
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