1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Michael DeHaan 2014-07-17 10:12:42 -04:00
parent 0e5b0a2e97
commit 0fad9575e9

View file

@ -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', {})