Revision bc2929fc
b/daemons/ganeti-rapi | ||
---|---|---|
36 | 36 |
from ganeti import utils |
37 | 37 |
from ganeti.rapi import connector |
38 | 38 |
|
39 |
import ganeti.http.server |
|
39 | 40 |
|
40 |
class RemoteApiHttpServer(http.HttpServer): |
|
41 |
|
|
42 |
class RemoteApiHttpServer(http.server.HttpServer): |
|
41 | 43 |
"""REST Request Handler Class. |
42 | 44 |
|
43 | 45 |
""" |
44 | 46 |
def __init__(self, *args, **kwargs): |
45 |
http.HttpServer.__init__(self, *args, **kwargs) |
|
47 |
http.server.HttpServer.__init__(self, *args, **kwargs)
|
|
46 | 48 |
self._resmap = connector.Mapper() |
47 | 49 |
|
48 | 50 |
def HandleRequest(self, req): |
Also available in: Unified diff