Revision d4b9d97f lib/cmdlib.py

b/lib/cmdlib.py
498 498
  HPATH = "cluster-verify"
499 499
  HTYPE = constants.HTYPE_CLUSTER
500 500
  _OP_REQP = ["skip_checks"]
501
  REQ_BGL = False
502

  
503
  def ExpandNames(self):
504
    self.needed_locks = {
505
      locking.LEVEL_NODE: locking.ALL_SET,
506
      locking.LEVEL_INSTANCE: locking.ALL_SET,
507
    }
508
    self.share_locks = dict(((i, 1) for i in locking.LEVELS))
501 509

  
502 510
  def _VerifyNode(self, node, file_list, local_cksum, vglist, node_result,
503 511
                  remote_version, feedback_fn):
......
912 920

  
913 921
  """
914 922
  _OP_REQP = []
923
  REQ_BGL = False
924

  
925
  def ExpandNames(self):
926
    self.needed_locks = {
927
      locking.LEVEL_NODE: locking.ALL_SET,
928
      locking.LEVEL_INSTANCE: locking.ALL_SET,
929
    }
930
    self.share_locks = dict(((i, 1) for i in locking.LEVELS))
915 931

  
916 932
  def CheckPrereq(self):
917 933
    """Check prerequisites.

Also available in: Unified diff