Browse code

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

Nils Steinger authored on 2015/12/05 23:40:49
Showing 1 changed files
... ...
@@ -133,7 +133,10 @@ class Task(Base, Conditional, Taggable, Become):
133 133
 
134 134
     def __repr__(self):
135 135
         ''' returns a human readable representation of the task '''
136
-        return "TASK: %s" % self.get_name()
136
+        if self.get_name() == 'meta ':
137
+            return "TASK: meta (%s)" % self.args['_raw_params']
138
+        else:
139
+            return "TASK: %s" % self.get_name()
137 140
 
138 141
     def _preprocess_loop(self, ds, new_ds, k, v):
139 142
         ''' take a lookup plugin name and store it correctly '''