Commit bc2929fc authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

ganeti-rapi: Convert to new HTTP server

Reviewed-by: amishchenko
parent 19205c39
......@@ -36,13 +36,15 @@ from ganeti import ssconf
from ganeti import utils
from ganeti.rapi import connector
import ganeti.http.server
class RemoteApiHttpServer(http.HttpServer):
class RemoteApiHttpServer(http.server.HttpServer):
"""REST Request Handler Class.
"""
def __init__(self, *args, **kwargs):
http.HttpServer.__init__(self, *args, **kwargs)
http.server.HttpServer.__init__(self, *args, **kwargs)
self._resmap = connector.Mapper()
def HandleRequest(self, req):
......
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