Revision 99ccf8b9 lib/config.py

b/lib/config.py
242 242
    """
243 243
    node = self._UnlockedGetNodeInfo(instance.primary_node)
244 244
    nodegroup = self._UnlockedGetNodeGroup(node.group)
245
    return self._config_data.cluster.SimpleFillDP(nodegroup.diskparams)
245
    return self._UnlockedGetGroupDiskParams(nodegroup)
246

  
247
  @locking.ssynchronized(_config_lock, shared=1)
248
  def GetGroupDiskParams(self, group):
249
    """Get the disk params populated with inherit chain.
250

  
251
    @type group: L{objects.Group}
252
    @param group: The group we want to know the params for
253
    @return: A dict with the filled in disk params
254

  
255
    """
256
    return self._UnlockedGetGroupDiskParams(group)
257

  
258
  def _UnlockedGetGroupDiskParams(self, group):
259
    """Get the disk params populated with inherit chain down to node-group.
260

  
261
    @type group: L{objects.Group}
262
    @param group: The group we want to know the params for
263
    @return: A dict with the filled in disk params
264

  
265
    """
266
    return self._config_data.cluster.SimpleFillDP(group.diskparams)
246 267

  
247 268
  @locking.ssynchronized(_config_lock, shared=1)
248 269
  def GenerateMAC(self, ec_id):

Also available in: Unified diff