1
0
Fork 0
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:
Michael DeHaan 2013-02-17 11:42:45 -05:00
parent 0af83317a1
commit fa21b41357

View file

@ -33,7 +33,8 @@ class LookupModule(object):
ret = [] ret = []
for term in terms: for term in terms:
if term in CACHE: 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) p = subprocess.Popen(term, cwd=self.basedir, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
(stdout, stderr) = p.communicate() (stdout, stderr) = p.communicate()
if p.returncode == 0: if p.returncode == 0: