Commit ff024b65 by Brian Coca

now with_items also accepts sets

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
parent fcb760c3
...@@ -36,8 +36,8 @@ class LookupModule(object): ...@@ -36,8 +36,8 @@ class LookupModule(object):
def run(self, terms, inject=None, **kwargs): def run(self, terms, inject=None, **kwargs):
terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject) terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject)
if not isinstance(terms, list): if not isinstance(terms, list) and not isinstance(terms,set):
raise errors.AnsibleError("with_items expects a list") raise errors.AnsibleError("with_items expects a list or a set")
return flatten(terms) return flatten(terms)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment