Commit b528fe9a authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

cyclades: api_method_not_allowed typo's

parent 34cf56e6
......@@ -65,7 +65,7 @@ def demux(request):
elif request.method == 'POST':
return create_image(request)
else:
return api.method_not_allowed(request)
return api.api_method_not_allowed(request)
def image_demux(request, image_id):
......@@ -74,7 +74,7 @@ def image_demux(request, image_id):
elif request.method == 'DELETE':
return delete_image(request, image_id)
else:
return api.method_not_allowed(request)
return api.api_method_not_allowed(request)
def metadata_demux(request, image_id):
......@@ -83,7 +83,7 @@ def metadata_demux(request, image_id):
elif request.method == 'POST':
return update_metadata(request, image_id)
else:
return api.method_not_allowed(request)
return api.api_method_not_allowed(request)
def metadata_item_demux(request, image_id, key):
......@@ -94,7 +94,7 @@ def metadata_item_demux(request, image_id, key):
elif request.method == 'DELETE':
return delete_metadata_item(request, image_id, key)
else:
return api.method_not_allowed(request)
return api.api_method_not_allowed(request)
def image_to_dict(image, detail=True):
......
......@@ -69,7 +69,7 @@ def demux(request):
elif request.method == 'POST':
return create_network(request)
else:
return api.method_not_allowed(request)
return api.api_method_not_allowed(request)
def network_demux(request, network_id):
......@@ -80,7 +80,7 @@ def network_demux(request, network_id):
elif request.method == 'DELETE':
return delete_network(request, network_id)
else:
return api.method_not_allowed(request)
return api.api_method_not_allowed(request)
def network_to_dict(network, user_id, detail=True):
......
......@@ -78,7 +78,7 @@ def demux(request):
elif request.method == 'POST':
return create_server(request)
else:
return api.method_not_allowed(request)
return api.api_method_not_allowed(request)
def server_demux(request, server_id):
......@@ -89,7 +89,7 @@ def server_demux(request, server_id):
elif request.method == 'DELETE':
return delete_server(request, server_id)
else:
return api.method_not_allowed(request)
return api.api_method_not_allowed(request)
def metadata_demux(request, server_id):
......@@ -98,7 +98,7 @@ def metadata_demux(request, server_id):
elif request.method == 'POST':
return update_metadata(request, server_id)
else:
return api.method_not_allowed(request)
return api.api_method_not_allowed(request)
def metadata_item_demux(request, server_id, key):
......@@ -109,7 +109,7 @@ def metadata_item_demux(request, server_id, key):
elif request.method == 'DELETE':
return delete_metadata_item(request, server_id, key)
else:
return api.method_not_allowed(request)
return api.api_method_not_allowed(request)
def nic_to_dict(nic):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment