wso2am/1.9.1/plugins/wso2am-startup-handler.py
def read_cluster_id_of_service(self, service_name, app_id):
        """
        Get the cluster_id of a service read from topology
        :return: cluster_id
        """
        cluster_id = None
        clusters = self.get_clusters_from_topology(service_name)

        if clusters is not None:
            for cluster in clusters:
                if cluster.app_id == app_id:
                    cluster_id = cluster.cluster_id

        return cluster_id

        Get the cluster_id of a service read from topology
        :return: cluster_id
        
Get the cluster_id of a service read from topology
Get the cluster_id of a service read from topology
def read_cluster_id_of_service(self, service_name, app_id):
        cluster_id = None
        clusters = self.get_clusters_from_topology(service_name)
        if clusters is not None:
            for cluster in clusters:
                if cluster.app_id == app_id:
                    cluster_id = cluster.cluster_id
        return cluster_id
def read_cluster_id_of_service ( self , service_name , app_id ) : cluster_id = None clusters = self . get_clusters_from_topology ( service_name ) if clusters is not None : for cluster in clusters : if cluster . app_id == app_id : cluster_id = cluster . cluster_id return cluster_id
Get the cluster_id of a service read from topology
Get the cluster_id of a service read from topology
"""
        Get the cluster_id of a service read from topology
        :return: cluster_id
        """
None
self
service_name
app_id