def _determine_deployed_services(self, cluster):
        for ng in cluster.node_groups:
            for service in self.services:
                if service.deployed:
                    continue
                for sc in service.components:
                    if sc.name in ng.node_processes:
                        service.deployed = True
                        service.register_user_input_handlers(
                            self.user_input_handlers)
                        break
dataset/ETHPy150Open openstack/sahara/sahara/plugins/hdp/clusterspec.py/ClusterSpec._determine_deployed_services/original