huskar_api/models/instance/management.py
def resolve_cluster_name(self, cluster_name):
        """Resolves the cluster name and returns the name of physical cluster.

        See :class:`ClusterResolver` for details.

        :param cluster_name: The original cluster name, or the intent of route.
        :returns: The physical cluster name or ``None``.
        """
        if self.type_name != SERVICE_SUBDOMAIN:
            return
        if (self.from_application_name and self.from_cluster_name and
                cluster_name in settings.ROUTE_INTENT_LIST):
            physical_name = self.cluster_resolver.resolve(
                cluster_name=self.from_cluster_name,
                from_application_name=self.from_application_name,
                intent=cluster_name)
            return physical_name or self.from_cluster_name
        return self.cluster_resolver.resolve(cluster_name)
Resolves the cluster name and returns the name of physical cluster.

        See :class:`ClusterResolver` for details.

        :param cluster_name: The original cluster name, or the intent of route.
        :returns: The physical cluster name or ``None``.
        
Resolves the cluster name and returns the name of physical cluster.
See :class:`ClusterResolver` for details.
Resolves the cluster name and returns the name of physical cluster . See : class : ` ClusterResolver ` for details .
def resolve_cluster_name(self, cluster_name):
        if self.type_name != SERVICE_SUBDOMAIN:
            return
        if (self.from_application_name and self.from_cluster_name and
                cluster_name in settings.ROUTE_INTENT_LIST):
            physical_name = self.cluster_resolver.resolve(
                cluster_name=self.from_cluster_name,
                from_application_name=self.from_application_name,
                intent=cluster_name)
            return physical_name or self.from_cluster_name
        return self.cluster_resolver.resolve(cluster_name)
def resolve_cluster_name ( self , cluster_name ) : if self . type_name != SERVICE_SUBDOMAIN : return if ( self . from_application_name and self . from_cluster_name and cluster_name in settings . ROUTE_INTENT_LIST ) : physical_name = self . cluster_resolver . resolve ( cluster_name = self . from_cluster_name , from_application_name = self . from_application_name , intent = cluster_name ) return physical_name or self . from_cluster_name return self . cluster_resolver . resolve ( cluster_name )
Resolves the cluster name and returns the name of physical cluster.
Resolves the cluster name and returns the name of physical cluster .
"""Resolves the cluster name and returns the name of physical cluster.

        See :class:`ClusterResolver` for details.

        :param cluster_name: The original cluster name, or the intent of route.
        :returns: The physical cluster name or ``None``.
        """
The physical cluster name or ``None``.
The physical cluster name or ` ` None ` ` .
self
cluster_name
The original cluster name, or the intent of route.
The original cluster name or the intent of route .