mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixup the pipe_once plugin
This commit is contained in:
parent
0af83317a1
commit
fa21b41357
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue