Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/s/a/sahara-2014.1/sahara/service/validations/base.py   sahara(Download)
def check_cluster_template_unique_name(name):
    if name in [t.name for t in api.get_cluster_templates()]:
        raise ex.NameAlreadyExistsException("Cluster template with name '%s'"
                                            " already exists" % name)
 

src/s/a/sahara-HEAD/sahara/service/validations/base.py   sahara(Download)
def check_cluster_template_unique_name(name):
    if name in [t.name for t in api.get_cluster_templates()]:
        raise ex.NameAlreadyExistsException("Cluster template with name '%s'"
                                            " already exists" % name)
 

src/s/a/sahara-2014.1/sahara/api/v10.py   sahara(Download)
def cluster_templates_list():
    return u.render(
        cluster_templates=[t.to_dict() for t in api.get_cluster_templates()])
 
 

src/s/a/sahara-HEAD/sahara/api/v10.py   sahara(Download)
def cluster_templates_list():
    return u.render(
        cluster_templates=[t.to_dict() for t in api.get_cluster_templates()])
 
 

src/s/a/sahara-2014.1/sahara/service/validations/node_group_templates.py   sahara(Download)
            cluster_users += [cluster.name]
 
    for cluster_template in api.get_cluster_templates():
        if (node_group_template_id in
            [node_group.node_group_template_id

src/s/a/sahara-HEAD/sahara/service/validations/node_group_templates.py   sahara(Download)
            cluster_users += [cluster.name]
 
    for cluster_template in api.get_cluster_templates():
        if (node_group_template_id in
            [node_group.node_group_template_id