def _build_g5k_conf(vmong5k_conf):
    """Build the conf of the g5k provider from the vmong5k conf."""
    clusters = [m.cluster for m in vmong5k_conf.machines]
    sites = g5k_api_utils.get_clusters_sites(clusters)
    site_names = set(sites.values())
    if len(site_names) > 1:
        raise Exception("Multisite deployment not supported yet")
    site = site_names.pop()
    return _do_build_g5k_conf(vmong5k_conf, site)
def _build_g5k_conf ( vmong5k_conf ) : clusters = [ m . cluster for m in vmong5k_conf . machines ] sites = g5k_api_utils . get_clusters_sites ( clusters ) site_names = set ( sites . values ( ) ) if len ( site_names ) > 1 : raise Exception ( "Multisite deployment not supported yet" ) site = site_names . pop ( ) return _do_build_g5k_conf ( vmong5k_conf , site )
Build the conf of the g5k provider from the vmong5k conf.