Example #1
0
File: v02.py Project: akshayms/eho
def clusters_create():
    data = request_data()
    try:
        return render(api.create_cluster(data).wrapped_dict)
    except Exception, e:
        abort_and_log(500, "Exception while adding new Cluster", e)
Example #2
0
File: v02.py Project: akshayms/eho
def templates_create():
    data = request_data()
    try:
        return render(api.create_node_template(data).wrapped_dict)
    except Exception, e:
        abort_and_log(500, "Exception while adding NodeTemplate", e)