def host_events(self, host):
        '''
        Given a host name, this will return all task events executed on that host
        '''
        all_host_events = filter(lambda x: 'event_data' in x and 'host' in x['event_data'] and x['event_data']['host'] == host,
                                 self.events)
        return all_host_events
def host_events ( self , host ) : all_host_events = filter ( lambda x : 'event_data' in x and 'host' in x [ 'event_data' ] and x [ 'event_data' ] [ 'host' ] == host , self . events ) return all_host_events
Given a host name, this will return all task events executed on that host