Revision d65e5776 lib/config.py

b/lib/config.py
539 539
    return self._UnlockedGetNodeList()
540 540

  
541 541
  @locking.ssynchronized(_config_lock, shared=1)
542
  def GetAllNodesInfo(self):
543
    """Get the configuration of all nodes.
544

  
545
    @rtype: dict
546
    @returns: dict of (node, node_info), where node_info is what
547
              would GetNodeInfo return for the node
548

  
549
    """
550
    my_dict = dict([(node, self._UnlockedGetNodeInfo(node))
551
                    for node in self._UnlockedGetNodeList()])
552
    return my_dict
553

  
554
  @locking.ssynchronized(_config_lock, shared=1)
542 555
  def DumpConfig(self):
543 556
    """Return the entire configuration of the cluster.
544 557
    """

Also available in: Unified diff