Revision 622444e5 lib/config.py

b/lib/config.py
876 876
        return nodegroup.uuid
877 877
    raise errors.OpPrereqError("Nodegroup '%s' not found", target)
878 878

  
879
  @locking.ssynchronized(_config_lock, shared=1)
880
  def GetAllNodeGroupsInfo(self):
881
    """Get the configuration of all node groups.
882

  
883
    """
884
    return dict(self._config_data.nodegroups)
885

  
879 886
  @locking.ssynchronized(_config_lock)
880 887
  def AddInstance(self, instance, ec_id):
881 888
    """Add an instance to the config.

Also available in: Unified diff