Revision 2d54e29c

b/daemons/ganeti-confd
325 325
    self._ResetTimer()
326 326

  
327 327

  
328
def CheckConfd(options, args):
328
def CheckConfd(_, args):
329 329
  """Initial checks whether to run exit with a failure.
330 330

  
331 331
  """
......
340 340
    sys.exit(constants.EXIT_FAILURE)
341 341

  
342 342

  
343
def ExecConfd(options, args):
343
def ExecConfd(options, _):
344 344
  """Main confd function, executed with PID file held
345 345

  
346 346
  """
......
354 354
    # If enabling the processor has failed, we can still go on, but confd will
355 355
    # be disabled
356 356
    logging.warning("Confd is starting in disabled mode")
357
    pass
357

  
358 358
  server = ConfdAsyncUDPServer(options.bind_address, options.port, processor)
359 359

  
360 360
  # Configuration reloader
b/daemons/ganeti-masterd
568 568
    sys.exit(constants.EXIT_FAILURE)
569 569

  
570 570

  
571
def ExecMasterd (options, args):
571
def ExecMasterd (options, args): # pylint: disable-msg=W0613
572 572
  """Main master daemon function, executed with the PID file held.
573 573

  
574 574
  """
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
  """
b/daemons/ganeti-rapi
195 195
  ssconf.CheckMaster(options.debug)
196 196

  
197 197

  
198
def ExecRapi(options, args):
198
def ExecRapi(options, _):
199 199
  """Main remote API function, executed with the PID file held.
200 200

  
201 201
  """
b/lib/cmdlib.py
261 261
    """
262 262
    raise NotImplementedError
263 263

  
264
  # this is valid in this entire class even if added here
265
  # pylint: disable-msg=R0201
266 264
  def HooksCallBack(self, phase, hook_results, feedback_fn, lu_result):
267 265
    """Notify the LU about the results of its hooks.
268 266

  
......
282 280
        and hook results
283 281

  
284 282
    """
283
    # API must be kept, thus we ignore the unused argument and could
284
    # be a function warnings
285
    # pylint: disable-msg=W0613,R0201
285 286
    return lu_result
286 287

  
287 288
  def _ExpandAndLockInstance(self):
b/lib/confd/querylib.py
50 50
    """
51 51
    self.reader = reader
52 52

  
53
  def Exec(self, query): # pylint: disable-msg=R0201
53
  def Exec(self, query): # pylint: disable-msg=R0201,W0613
54 54
    """Process a single UDP request from a client.
55 55

  
56 56
    Different queries should override this function, which by defaults returns
b/lib/http/__init__.py
640 640
    we do on our side.
641 641

  
642 642
    """
643
    # some parameters are unused, but this is the API
644
    # pylint: disable-msg=W0613
643 645
    assert self._ssl_params, "SSL not initialized"
644 646

  
645 647
    return (self._ssl_cert.digest("sha1") == cert.digest("sha1") and
b/lib/http/auth.py
97 97
    @return: Authentication realm
98 98

  
99 99
    """
100
    # today we don't have per-request filtering, but we might want to
101
    # add it in the future
102
    # pylint: disable-msg=W0613
100 103
    return self.AUTH_REALM
101 104

  
102 105
  def PreHandleRequest(self, req):
b/lib/jqueue.py
923 923
    @return: the list of job IDs
924 924

  
925 925
    """
926
    # pylint: disable-msg=W0613
926 927
    jlist = [self._ExtractJobID(name) for name in self._ListJobFiles()]
927 928
    jlist = utils.NiceSort(jlist)
928 929
    return jlist
b/lib/rapi/baserlib.py
201 201
    raise http.HttpBadGateway("Master seems to unreachable: %s" % str(err))
202 202

  
203 203

  
204
def FeedbackFn(ts, log_type, log_msg):
204
def FeedbackFn(ts, log_type, log_msg): # pylint: disable-msg=W0613
205 205
  """Feedback logging function for http case.
206 206

  
207 207
  We don't have a stdout for printing log messages, so log them to the
208 208
  http log at least.
209 209

  
210
  @param ts: the timestamp (unused)
211

  
210 212
  """
211 213
  logging.info("%s: %s", log_type, log_msg)
212 214

  
b/lib/utils.py
2409 2409
    """
2410 2410
    self.called = False
2411 2411

  
2412
  def _HandleSignal(self, signum, frame):
2412
  # we don't care about arguments, but we leave them named for the future
2413
  def _HandleSignal(self, signum, frame): # pylint: disable-msg=W0613
2413 2414
    """Actual signal handling function.
2414 2415

  
2415 2416
    """
b/scripts/gnt-backup
20 20

  
21 21
"""Backup related commands"""
22 22

  
23
# pylint: disable-msg=W0401,W0614,C0103
23
# pylint: disable-msg=W0401,W0613,W0614,C0103
24 24
# W0401: Wildcard import ganeti.cli
25
# W0613: Unused argument, since all functions follow the same API
25 26
# W0614: Unused import %s from wildcard import (since we need cli)
26 27
# C0103: Invalid name gnt-backup
27 28

  
b/scripts/gnt-cluster
20 20

  
21 21
"""Cluster related commands"""
22 22

  
23
# pylint: disable-msg=W0401,W0614,C0103
23
# pylint: disable-msg=W0401,W0613,W0614,C0103
24 24
# W0401: Wildcard import ganeti.cli
25
# W0613: Unused argument, since all functions follow the same API
25 26
# W0614: Unused import %s from wildcard import (since we need cli)
26 27
# C0103: Invalid name gnt-cluster
27 28

  
b/scripts/gnt-job
20 20

  
21 21
"""Job related commands"""
22 22

  
23
# pylint: disable-msg=W0401,W0614,C0103
23
# pylint: disable-msg=W0401,W0613,W0614,C0103
24 24
# W0401: Wildcard import ganeti.cli
25
# W0613: Unused argument, since all functions follow the same API
25 26
# W0614: Unused import %s from wildcard import (since we need cli)
26 27
# C0103: Invalid name gnt-job
27 28

  
b/scripts/gnt-node
20 20

  
21 21
"""Node related commands"""
22 22

  
23
# pylint: disable-msg=W0401,W0614,C0103
23
# pylint: disable-msg=W0401,W0613,W0614,C0103
24 24
# W0401: Wildcard import ganeti.cli
25
# W0613: Unused argument, since all functions follow the same API
25 26
# W0614: Unused import %s from wildcard import (since we need cli)
26 27
# C0103: Invalid name gnt-node
27 28

  
b/scripts/gnt-os
20 20

  
21 21
"""OS scripts related commands"""
22 22

  
23
# pylint: disable-msg=W0401,W0614,C0103
23
# pylint: disable-msg=W0401,W0613,W0614,C0103
24 24
# W0401: Wildcard import ganeti.cli
25
# W0613: Unused argument, since all functions follow the same API
25 26
# W0614: Unused import %s from wildcard import (since we need cli)
26 27
# C0103: Invalid name gnt-os
27 28

  
b/tools/burnin
87 87

  
88 88
  def prompt_user_passwd(self, host, realm, clear_cache=0):
89 89
    """No-interaction version of prompt_user_passwd."""
90
    # we follow parent class' API
91
    # pylint: disable-msg=W0613
90 92
    return None, None
91 93

  
92 94
  def http_error_default(self, url, fp, errcode, errmsg, headers):
b/tools/cfgshell
53 53
  responsibility to know what they're doing.
54 54

  
55 55
  """
56
  # all do_/complete_* functions follow the same API
57
  # pylint: disable-msg=W0613
56 58
  prompt = "(/) "
57 59

  
58 60
  def __init__(self, cfg_file=None):

Also available in: Unified diff