add host_status_counts to adhoc command event

This commit is contained in:
Jake McDermott
2018-07-09 09:39:09 -04:00
parent 380bf77b63
commit 1b1df63415
3 changed files with 23 additions and 1 deletions

View File

@@ -607,6 +607,9 @@ class BaseCommandEvent(CreatedModifiedModel):
'''
return self.event
def get_host_status_counts(self):
return create_host_status_counts(getattr(self, 'event_data', {}))
class AdHocCommandEvent(BaseCommandEvent):