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