Commit 975172c1 by James Cammarata

Make sure role name doesn't end up in task name more than once

Fixes #11691
parent b09f1f8e
......@@ -97,7 +97,7 @@ class Task(Base, Conditional, Taggable, Become):
def get_name(self):
''' return the name of the task '''
if self._role and self.name:
if self._role and self.name and not self.name.startswith("%s :" % self._role.get_name()):
return "%s : %s" % (self._role.get_name(), self.name)
elif self.name:
return self.name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment