Revision 8a147bba lib/config.py

b/lib/config.py
232 232
    return self._config_data.cluster.FillND(node, nodegroup)
233 233

  
234 234
  @locking.ssynchronized(_config_lock, shared=1)
235
  def GetInstanceDiskParams(self, instance):
236
    """Get the disk params populated with inherit chain.
237

  
238
    @type instance: L{objects.Instance}
239
    @param instance: The instance we want to know the params for
240
    @return: A dict with the filled in disk params
241

  
242
    """
243
    node = self._UnlockedGetNodeInfo(instance.primary_node)
244
    nodegroup = self._UnlockedGetNodeGroup(node.group)
245
    return self._config_data.cluster.SimpleFillDP(nodegroup.diskparams)
246

  
247
  @locking.ssynchronized(_config_lock, shared=1)
235 248
  def GenerateMAC(self, ec_id):
236 249
    """Generate a MAC for an instance.
237 250

  

Also available in: Unified diff