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)
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)