From aaab69cae9c3029594f3865500420b271e15ce56 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 11 Jun 2015 13:43:47 -0400 Subject: [PATCH] brought back terms testing as with_ is not only way to call and we cannot guarantee terms is a list otherwise. --- lib/ansible/plugins/lookup/file.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/plugins/lookup/file.py b/lib/ansible/plugins/lookup/file.py index 76a12eb86b..b38c2eff55 100644 --- a/lib/ansible/plugins/lookup/file.py +++ b/lib/ansible/plugins/lookup/file.py @@ -27,6 +27,9 @@ class LookupModule(LookupBase): def run(self, terms, variables=None, **kwargs): + if not isinstance(terms, list): + terms = [ terms ] + ret = [] for term in terms: basedir_path = self._loader.path_dwim(term)