Template handlers late

This allows overriding variables in name, and removes templating from
parsing.
This commit is contained in:
Daniel Hokka Zakrisson 2012-11-23 00:31:38 +01:00
parent ebd31af940
commit 1e0295c7e2
2 changed files with 4 additions and 7 deletions

View file

@ -149,9 +149,6 @@ class Task(object):
# allow the user to list comma delimited tags
import_tags = import_tags.split(",")
self.name = utils.template(None, self.name, self.module_vars)
self.action = utils.template(None, self.action, self.module_vars)
# handle mutually incompatible options
incompatibles = [ x for x in [ self.first_available_file, self.items_lookup_plugin ] if x is not None ]
if len(incompatibles) > 1: