also rename plugin name in error message

parent e3f213e0
......@@ -71,7 +71,7 @@ class LookupModule(object):
terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject)
if not isinstance(terms, list):
raise errors.AnsibleError("with_flat_list expects a list")
raise errors.AnsibleError("with_flattened expects a list")
ret = self.flatten(terms, inject)
return ret
......
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