mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 01:33:09 +00:00
Fixup the pipe_once plugin
This commit is contained in:
@@ -33,7 +33,8 @@ class LookupModule(object):
|
||||
ret = []
|
||||
for term in terms:
|
||||
if term in CACHE:
|
||||
ret.append(CACHE.get(term)
|
||||
ret.append(CACHE.get(term))
|
||||
continue
|
||||
p = subprocess.Popen(term, cwd=self.basedir, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
|
||||
(stdout, stderr) = p.communicate()
|
||||
if p.returncode == 0:
|
||||
|
||||
Reference in New Issue
Block a user