Fixes a dev branch glitch where a conditional could be applied to multiple tasks. Also improves the errors on parsing bad conditionals to make them less confusing to users.

This commit is contained in:
Michael DeHaan 2013-10-12 17:39:28 -04:00
commit 9ea54fcaaf
3 changed files with 24 additions and 6 deletions

View file

@ -41,7 +41,7 @@ class Task(object):
'sudo_pass', 'when', 'connection', 'environment', 'args',
'any_errors_fatal', 'changed_when', 'failed_when', 'always_run', 'delay', 'retries', 'until'
]
def __init__(self, play, ds, module_vars=None, default_vars=None, additional_conditions=None, role_name=None):
''' constructor loads from a task or handler datastructure '''