More meaningful string representation for meta tasks (like 'noop' and 'flush_handlers')

This commit is contained in:
Nils Steinger 2015-12-05 15:40:49 +01:00 committed by James Cammarata
parent 8e16b481d0
commit d85b8adba6

View file

@ -133,6 +133,9 @@ class Task(Base, Conditional, Taggable, Become):
def __repr__(self):
''' returns a human readable representation of the task '''
if self.get_name() == 'meta ':
return "TASK: meta (%s)" % self.args['_raw_params']
else:
return "TASK: %s" % self.get_name()
def _preprocess_loop(self, ds, new_ds, k, v):