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

ganeti-rapi: Remove serial number/ETag code



It was never used as intended.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 580558a3
......@@ -164,9 +164,6 @@ class RemoteApiHttpServer(http.auth.HttpServerRequestAuthentication,
try:
result = ctx.handler_fn()
sn = ctx.handler.getSerialNumber()
if sn:
req.response_headers[http.HTTP_ETAG] = str(sn)
except luxi.TimeoutError:
raise http.HttpGatewayTimeout()
except luxi.ProtocolError, err:
......
......@@ -233,13 +233,6 @@ class R_Generic(object):
self.items = items
self.queryargs = queryargs
self.req = req
self.sn = None
def getSerialNumber(self):
"""Get Serial Number.
"""
return self.sn
def _checkIntVariable(self, name, default=0):
"""Return the parsed value of an int argument.
......
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