Skip to content
Snippets Groups Projects
Commit 71d23b33 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix pylint 0.20.0 warnings


These seem to be wrong, possibly a regression in pylint.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 87e510fd
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,8 @@ class RemoteApiHttpServer(http.auth.HttpServerRequestAuthentication, ...@@ -80,6 +80,8 @@ class RemoteApiHttpServer(http.auth.HttpServerRequestAuthentication,
AUTH_REALM = "Ganeti Remote API" AUTH_REALM = "Ganeti Remote API"
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
# pylint: disable-msg=W0233
# it seems pylint doesn't see the second parent class there
http.server.HttpServer.__init__(self, *args, **kwargs) http.server.HttpServer.__init__(self, *args, **kwargs)
http.auth.HttpServerRequestAuthentication.__init__(self) http.auth.HttpServerRequestAuthentication.__init__(self)
self._resmap = connector.Mapper() self._resmap = connector.Mapper()
...@@ -207,6 +209,8 @@ def ExecRapi(options, _): ...@@ -207,6 +209,8 @@ def ExecRapi(options, _):
server = RemoteApiHttpServer(mainloop, options.bind_address, options.port, server = RemoteApiHttpServer(mainloop, options.bind_address, options.port,
ssl_params=ssl_params, ssl_verify_peer=False, ssl_params=ssl_params, ssl_verify_peer=False,
request_executor_class=JsonErrorRequestExecutor) request_executor_class=JsonErrorRequestExecutor)
# pylint: disable-msg=E1101
# it seems pylint doesn't see the second parent class there
server.Start() server.Start()
try: try:
mainloop.Run() mainloop.Run()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment