Revision 2d54e29c daemons/ganeti-noded
b/daemons/ganeti-noded | ||
---|---|---|
71 | 71 |
return wrapper |
72 | 72 |
|
73 | 73 |
|
74 |
class NodeHttpServer(http.server.HttpServer): # pylint: disable-msg=R0904
|
|
74 |
class NodeHttpServer(http.server.HttpServer): |
|
75 | 75 |
"""The server implementation. |
76 | 76 |
|
77 | 77 |
This class holds all methods exposed over the RPC interface. |
78 | 78 |
|
79 | 79 |
""" |
80 |
# too many public methods, and unused args - all methods get params |
|
81 |
# due to the API |
|
82 |
# pylint: disable-msg=R0904,W0613 |
|
80 | 83 |
def __init__(self, *args, **kwargs): |
81 | 84 |
http.server.HttpServer.__init__(self, *args, **kwargs) |
82 | 85 |
self.noded_pid = os.getpid() |
... | ... | |
797 | 800 |
sys.exit(constants.EXIT_FAILURE) |
798 | 801 |
|
799 | 802 |
|
800 |
def ExecNoded(options, args):
|
|
803 |
def ExecNoded(options, _):
|
|
801 | 804 |
"""Main node daemon function, executed with the PID file held. |
802 | 805 |
|
803 | 806 |
""" |
Also available in: Unified diff