Commit 46098a3a authored by Kostas Papadimitriou's avatar Kostas Papadimitriou Committed by Christos Stavrakakis

Fix variable scope

parent 700545ab
......@@ -443,13 +443,14 @@ def delete_server(request, server_id):
return HttpResponse(status=204)
# additional server actions
ARBITRARY_ACTIONS = ['console', 'firewallProfile']
def server_action(request, server_id):
req = util.get_request_dict(request)
log.debug('server_action %s %s', server_id, req)
# additional server actions
ARBITRARY_ACTIONS = ['console', 'firewallProfile']
if len(req) != 1:
raise faults.BadRequest("Malformed request")
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