From 8d423cf82e7beb9755289539a47523f3072bebb0 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 30 Jun 2014 15:12:23 -0500 Subject: [PATCH] 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 --- awx/main/models/inventory.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index b983125ae1..7004ee0248 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -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', [])