Commit 3ec42fe6 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou

Fix variable scope

parent 3eeb9660
......@@ -449,13 +449,14 @@ def delete_server(request, server_id):
return HttpResponse(status=204)
# additional server actions
ARBITRARY_ACTIONS = ['console', 'firewallProfile']
@util.api_method('POST')
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