diff --git a/lib/ansible/runner/lookup_plugins/flattened.py b/lib/ansible/runner/lookup_plugins/flattened.py index e359f59172..831b2e9130 100644 --- a/lib/ansible/runner/lookup_plugins/flattened.py +++ b/lib/ansible/runner/lookup_plugins/flattened.py @@ -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