Fix a corner case where a job failure could kill the task manager

because the job failure couldn't grab some extra info for the socketio
service

Fixes: https://trello.com/c/XdjJEhJ0/68-socketio-trackebac
This commit is contained in:
Matthew Jones 2014-06-30 15:12:23 -05:00
parent 57443141c9
commit 8d423cf82e

View File

@ -993,6 +993,7 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions):
def socketio_emit_data(self):
if self.inventory_source.group is not None:
return dict(group_id=self.inventory_source.group.id)
return {}
def save(self, *args, **kwargs):
update_fields = kwargs.get('update_fields', [])