AC-504 Migration to add roles to existing job events.

This commit is contained in:
Chris Church
2014-04-16 23:54:03 -04:00
parent ac2cd63ab5
commit a49c627e53
2 changed files with 454 additions and 0 deletions

View File

@@ -525,6 +525,8 @@ class JobEvent(CreatedModifiedModel):
msg = "%s (%s)" % (msg, self.play)
elif self.event == 'playbook_on_task_start':
if self.task:
if self.event_data.get('is_conditional', False):
msg = 'Handler Notified'
if self.role:
msg = '%s (%s | %s)' % (msg, self.role, self.task)
else: