Revision b459a848 lib/server/masterd.py
b/lib/server/masterd.py | ||
---|---|---|
26 | 26 |
|
27 | 27 |
""" |
28 | 28 |
|
29 |
# pylint: disable-msg=C0103
|
|
29 |
# pylint: disable=C0103 |
|
30 | 30 |
# C0103: Invalid name ganeti-masterd |
31 | 31 |
|
32 | 32 |
import grp |
... | ... | |
66 | 66 |
|
67 | 67 |
|
68 | 68 |
class ClientRequestWorker(workerpool.BaseWorker): |
69 |
# pylint: disable-msg=W0221
|
|
69 |
# pylint: disable=W0221 |
|
70 | 70 |
def RunTask(self, server, message, client): |
71 | 71 |
"""Process the request. |
72 | 72 |
|
... | ... | |
103 | 103 |
client.send_message(reply) |
104 | 104 |
# awake the main thread so that it can write out the data. |
105 | 105 |
server.awaker.signal() |
106 |
except: # pylint: disable-msg=W0702
|
|
106 |
except: # pylint: disable=W0702 |
|
107 | 107 |
logging.exception("Send error") |
108 | 108 |
client.close_log() |
109 | 109 |
|
... | ... | |
189 | 189 |
def __init__(self, server): |
190 | 190 |
self.server = server |
191 | 191 |
|
192 |
def handle_request(self, method, args): # pylint: disable-msg=R0911
|
|
192 |
def handle_request(self, method, args): # pylint: disable=R0911 |
|
193 | 193 |
queue = self.server.context.jobqueue |
194 | 194 |
|
195 | 195 |
# TODO: Parameter validation |
... | ... | |
374 | 374 |
This class creates and holds common objects shared by all threads. |
375 | 375 |
|
376 | 376 |
""" |
377 |
# pylint: disable-msg=W0212
|
|
377 |
# pylint: disable=W0212 |
|
378 | 378 |
# we do want to ensure a singleton here |
379 | 379 |
_instance = None |
380 | 380 |
|
... | ... | |
613 | 613 |
return (mainloop, master) |
614 | 614 |
|
615 | 615 |
|
616 |
def ExecMasterd(options, args, prep_data): # pylint: disable-msg=W0613
|
|
616 |
def ExecMasterd(options, args, prep_data): # pylint: disable=W0613 |
|
617 | 617 |
"""Main master daemon function, executed with the PID file held. |
618 | 618 |
|
619 | 619 |
""" |
Also available in: Unified diff