@classmethod
    def _filter_db_aggregates(cls, db_aggregates, hosts):
        if not isinstance(hosts, set):
            hosts = set(hosts)
        filtered_aggregates = []
        for db_aggregate in db_aggregates:
            for host in db_aggregate['hosts']:
                if hosts in host:
                    filtered_aggregates.append(db_aggregate)
                    break
        return filtered_aggregates
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/objects/aggregate.py/AggregateList._filter_db_aggregates/swapped operands of `in`