Revision 7260cfbe daemons/ganeti-noded
b/daemons/ganeti-noded | ||
---|---|---|
21 | 21 |
|
22 | 22 |
"""Ganeti node daemon""" |
23 | 23 |
|
24 |
# functions in this module need to have a given name structure, so: |
|
25 |
# pylint: disable-msg=C0103 |
|
24 |
# pylint: disable-msg=C0103,W0142 |
|
25 |
|
|
26 |
# C0103: Functions in this module need to have a given name structure, |
|
27 |
# and the name of the daemon doesn't match |
|
28 |
|
|
29 |
# W0142: Used * or ** magic, since we do use it extensively in this |
|
30 |
# module |
|
26 | 31 |
|
27 | 32 |
import os |
28 | 33 |
import sys |
... | ... | |
66 | 71 |
return wrapper |
67 | 72 |
|
68 | 73 |
|
69 |
class NodeHttpServer(http.server.HttpServer): |
|
74 |
class NodeHttpServer(http.server.HttpServer): # pylint: disable-msg=R0904
|
|
70 | 75 |
"""The server implementation. |
71 | 76 |
|
72 | 77 |
This class holds all methods exposed over the RPC interface. |
... | ... | |
786 | 791 |
"""Main node daemon function, executed with the PID file held. |
787 | 792 |
|
788 | 793 |
""" |
789 |
global queue_lock |
|
794 |
global queue_lock # pylint: disable-msg=W0603
|
|
790 | 795 |
|
791 | 796 |
# Read SSL certificate |
792 | 797 |
if options.ssl: |
Also available in: Unified diff