Commit 0fad9575 by Michael DeHaan

Refine error message about invalid ops since people forget to indent tasks fairly often.

parent 0e5b0a2e
......@@ -55,7 +55,7 @@ class Play(object):
for x in ds.keys():
if not x in Play.VALID_KEYS:
raise errors.AnsibleError("%s is not a legal parameter in an Ansible Playbook" % x)
raise errors.AnsibleError("%s is not a legal parameter at this level in an Ansible Playbook" % x)
# allow all playbook keys to be set by --extra-vars
self.vars = ds.get('vars', {})
......
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