Filter minions by a generic filter.

def _ret_minions(self, filter_):
        '''
        Filter minions by a generic filter.
        '''
        minions = {}
        for minion in filter_(self.raw):
            data = self.get_data(minion)
            if data:
                minions[minion] = data.copy()
        return minions