huskar_api/models/utils.py
def normalize_cluster_name(cluster_name):
    """Normalizes the cluster name to avoid from duplicated E-Zone prefix."""
    fragments = cluster_name.split(u'-')
    prefix = first(fragments)
    if prefix and prefix in settings.ROUTE_EZONE_LIST:
        return u'-'.join(dedupleft(fragments, prefix))
    return unicode(cluster_name)
Normalizes the cluster name to avoid from duplicated E-Zone prefix.
Normalizes the cluster name to avoid from duplicated E-Zone prefix.
Normalizes the cluster name to avoid from duplicated E - Zone prefix .
def normalize_cluster_name(cluster_name):
    fragments = cluster_name.split(u'-')
    prefix = first(fragments)
    if prefix and prefix in settings.ROUTE_EZONE_LIST:
        return u'-'.join(dedupleft(fragments, prefix))
    return unicode(cluster_name)
def normalize_cluster_name ( cluster_name ) : fragments = cluster_name . split ( u'-' ) prefix = first ( fragments ) if prefix and prefix in settings . ROUTE_EZONE_LIST : return u'-' . join ( dedupleft ( fragments , prefix ) ) return unicode ( cluster_name )
Normalizes the cluster name to avoid from duplicated E-Zone prefix.
Normalizes the cluster name to avoid from duplicated E - Zone prefix .
"""Normalizes the cluster name to avoid from duplicated E-Zone prefix."""
cluster_name