Esempio n. 1
0
def _validate_node_group_names(cluster_section):
    """
    Check that node group names conform to RFC 952.
    """
    for nodename in cluster_section['nodes']:
        hostname(nodename)  ## raises ValueError if not conformant
    return cluster_section
Esempio n. 2
0
def _validate_node_group_names(cluster_section):
    """
    Check that node group names conform to RFC 952.
    """
    for nodename in cluster_section['nodes']:
        hostname(nodename)  ## raises ValueError if not conformant
    return cluster_section