Revision 7e950d31

b/lib/backend.py
2751 2751
  the master side.
2752 2752

  
2753 2753
  """
2754
  def Run(self, name, idata):
2754
  @staticmethod
2755
  def Run(name, idata):
2755 2756
    """Run an iallocator script.
2756 2757

  
2757 2758
    @type name: str
b/lib/cmdlib.py
7607 7607
    nl = [self.cfg.GetMasterNode()] + list(self.instance.all_nodes)
7608 7608
    return env, nl, nl
7609 7609

  
7610
  def _GetUpdatedParams(self, old_params, update_dict,
7610
  @staticmethod
7611
  def _GetUpdatedParams(old_params, update_dict,
7611 7612
                        default_values, parameter_types):
7612 7613
    """Return the new params dict for the given params.
7613 7614

  
b/lib/http/__init__.py
302 302
class HttpJsonConverter: # pylint: disable-msg=W0232
303 303
  CONTENT_TYPE = "application/json"
304 304

  
305
  def Encode(self, data):
305
  @staticmethod
306
  def Encode(data):
306 307
    return serializer.DumpJson(data)
307 308

  
308
  def Decode(self, data):
309
  @staticmethod
310
  def Decode(data):
309 311
    return serializer.LoadJson(data)
310 312

  
311 313

  
b/lib/jqueue.py
725 725
    except KeyError:
726 726
      pass
727 727

  
728
  def _CheckRpcResult(self, result, nodes, failmsg):
728
  @staticmethod
729
  def _CheckRpcResult(result, nodes, failmsg):
729 730
    """Verifies the status of an RPC call.
730 731

  
731 732
    Since we aim to keep consistency should this node (the current
......
806 807
    result = rpc.RpcRunner.call_jobqueue_rename(names, addrs, rename)
807 808
    self._CheckRpcResult(result, self._nodes, "Renaming files (%r)" % rename)
808 809

  
809
  def _FormatJobID(self, job_id):
810
  @staticmethod
811
  def _FormatJobID(job_id):
810 812
    """Convert a job ID to string format.
811 813

  
812 814
    Currently this just does C{str(job_id)} after performing some
......
1344 1346

  
1345 1347
    return (archived_count, len(all_job_ids) - last_touched - 1)
1346 1348

  
1347
  def _GetJobInfoUnlocked(self, job, fields):
1349
  @staticmethod
1350
  def _GetJobInfoUnlocked(job, fields):
1348 1351
    """Returns information about a job.
1349 1352

  
1350 1353
    @type job: L{_QueuedJob}
b/lib/rapi/connector.py
99 99
  """/ resource.
100 100

  
101 101
  """
102
  def GET(self):
102
  @staticmethod
103
  def GET():
103 104
    """Show the list of mapped resources.
104 105

  
105 106
    @return: a dictionary with 'name' and 'uri' keys for each of them.
......
142 143
  """ /2 resource, the root of the version 2 API.
143 144

  
144 145
  """
145
  def GET(self):
146
  @staticmethod
147
  def GET():
146 148
    """Show the list of mapped resources.
147 149

  
148 150
    @return: a dictionary with 'name' and 'uri' keys for each of them.
b/lib/rapi/rlib2.py
77 77
  to adapt clients accordingly.
78 78

  
79 79
  """
80
  def GET(self):
80
  @staticmethod
81
  def GET():
81 82
    """Returns the remote API version.
82 83

  
83 84
    """
......
88 89
  """Cluster info.
89 90

  
90 91
  """
91
  def GET(self):
92
  @staticmethod
93
  def GET():
92 94
    """Returns cluster information.
93 95

  
94 96
    """
......
100 102
  """/2/os resource.
101 103

  
102 104
  """
103
  def GET(self):
105
  @staticmethod
106
  def GET():
104 107
    """Return a list of all OSes.
105 108

  
106 109
    Can return error 500 in case of a problem.
......
131 134
  """/2/redistribute-config resource.
132 135

  
133 136
  """
134
  def PUT(self):
137
  @staticmethod
138
  def PUT():
135 139
    """Redistribute configuration to all nodes.
136 140

  
137 141
    """
......
142 146
  """/2/jobs resource.
143 147

  
144 148
  """
145
  def GET(self):
149
  @staticmethod
150
  def GET():
146 151
    """Returns a dictionary of jobs.
147 152

  
148 153
    @return: a dictionary with jobs id and uri.
b/tools/burnin
675 675
      Log("remove export", indent=2)
676 676
      self.ExecOrQueue(instance, exp_op, rem_op, imp_op, erem_op)
677 677

  
678
  def StopInstanceOp(self, instance):
678
  @staticmethod
679
  def StopInstanceOp(instance):
679 680
    """Stop given instance."""
680 681
    return opcodes.OpShutdownInstance(instance_name=instance)
681 682

  
682
  def StartInstanceOp(self, instance):
683
  @staticmethod
684
  def StartInstanceOp(instance):
683 685
    """Start given instance."""
684 686
    return opcodes.OpStartupInstance(instance_name=instance, force=False)
685 687

  
686
  def RenameInstanceOp(self, instance, instance_new):
688
  @staticmethod
689
  def RenameInstanceOp(instance, instance_new):
687 690
    """Rename instance."""
688 691
    return opcodes.OpRenameInstance(instance_name=instance,
689 692
                                    new_name=instance_new)
b/tools/cfgshell
309 309
      else:
310 310
        print "Invalid node name"
311 311

  
312
  def do_EOF(self, line):
312
  @staticmethod
313
  def do_EOF(line):
313 314
    """Exit the application.
314 315

  
315 316
    """
316 317
    print
317 318
    return True
318 319

  
319
  def do_quit(self, line):
320
  @staticmethod
321
  def do_quit(line):
320 322
    """Exit the application.
321 323

  
322 324
    """

Also available in: Unified diff