It was never used as intended. Signed-off-by: Michael Hanselmann <han...@google.com> --- daemons/ganeti-rapi | 3 --- lib/rapi/baserlib.py | 7 ------- 2 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/daemons/ganeti-rapi b/daemons/ganeti-rapi index 8ef9365..08f64ba 100755 --- a/daemons/ganeti-rapi +++ b/daemons/ganeti-rapi @@ -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: diff --git a/lib/rapi/baserlib.py b/lib/rapi/baserlib.py index 020d7bc..1f23f43 100644 --- a/lib/rapi/baserlib.py +++ b/lib/rapi/baserlib.py @@ -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. -- 1.6.4.3