def determine_component_hosts(self, component):
        hosts = set()
        for ng in self.node_groups.values():
            if ng.components in component:
                hosts |= ng.instances

        return hosts
dataset/ETHPy150Open openstack/sahara/sahara/plugins/hdp/clusterspec.py/ClusterSpec.determine_component_hosts/swapped operands of `in`