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

Make task repr really work for meta tasks.

Signed-off-by: 夏恺(Xia Kai) <xiaket@xiaket@gmail.com>
This commit is contained in:
夏恺(Xia Kai) 2016-03-01 06:03:22 +00:00
parent 915037c628
commit d033c40e80

View file

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