Revision 9d5b1371 lib/config.py

b/lib/config.py
1400 1400
                    for node in self._UnlockedGetNodeList()])
1401 1401
    return my_dict
1402 1402

  
1403
  @locking.ssynchronized(_config_lock, shared=1)
1404
  def GetNodeGroupsFromNodes(self, nodes):
1405
    """Returns groups for a list of nodes.
1406

  
1407
    @type nodes: list of string
1408
    @param nodes: List of node names
1409
    @rtype: frozenset
1410

  
1411
    """
1412
    return frozenset(self._UnlockedGetNodeInfo(name).group for name in nodes)
1413

  
1403 1414
  def _UnlockedGetMasterCandidateStats(self, exceptions=None):
1404 1415
    """Get the number of current and maximum desired and possible candidates.
1405 1416

  

Also available in: Unified diff