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

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

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

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

src/s/a/sahara-2014.1/sahara/api/v10.py   sahara(Download)
def clusters_list():
    return u.render(clusters=[c.to_dict() for c in api.get_clusters()])
 
 
@rest.post('/clusters')

src/s/a/sahara-HEAD/sahara/api/v10.py   sahara(Download)
def clusters_list():
    return u.render(clusters=[c.to_dict() for c in api.get_clusters()])
 
 
@rest.post('/clusters')

src/s/a/sahara-2014.1/sahara/service/validations/node_group_templates.py   sahara(Download)
def check_node_group_template_usage(node_group_template_id, **kwargs):
    cluster_users = []
    template_users = []
 
    for cluster in api.get_clusters():

src/s/a/sahara-HEAD/sahara/service/validations/node_group_templates.py   sahara(Download)
def check_node_group_template_usage(node_group_template_id, **kwargs):
    cluster_users = []
    template_users = []
 
    for cluster in api.get_clusters():

src/s/a/sahara-2014.1/sahara/service/validations/cluster_templates.py   sahara(Download)
def check_cluster_template_usage(cluster_template_id, **kwargs):
    users = []
 
    for cluster in api.get_clusters():
        if cluster_template_id == cluster.cluster_template_id:

src/s/a/sahara-HEAD/sahara/service/validations/cluster_templates.py   sahara(Download)
def check_cluster_template_usage(cluster_template_id, **kwargs):
    users = []
 
    for cluster in api.get_clusters():
        if cluster_template_id == cluster.cluster_template_id: