From fa21b413570e6d4c492eb609229cdfb0ef58e95f Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 17 Feb 2013 11:42:45 -0500 Subject: [PATCH] Fixup the pipe_once plugin --- lib/ansible/runner/lookup_plugins/pipe_once.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/runner/lookup_plugins/pipe_once.py b/lib/ansible/runner/lookup_plugins/pipe_once.py index 0732a88d909..eb320a47132 100644 --- a/lib/ansible/runner/lookup_plugins/pipe_once.py +++ b/lib/ansible/runner/lookup_plugins/pipe_once.py @@ -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: