Revision 2da9f556 lib/objects.py

b/lib/objects.py
1254 1254
    "blacklisted_os",
1255 1255
    "primary_ip_family",
1256 1256
    "prealloc_wipe_disks",
1257
    "hv_state_static",
1258
    "disk_state_static",
1257 1259
    ] + _TIMESTAMPS + _UUID
1258 1260

  
1259 1261
  def UpgradeConfig(self):
......
1497 1499
    # specified params
1498 1500
    return FillDict(result, os_params)
1499 1501

  
1502
  @staticmethod
1503
  def SimpleFillHvState(hv_state):
1504
    """Fill an hv_state sub dict with cluster defaults.
1505

  
1506
    """
1507
    return FillDict(constants.HVST_DEFAULTS, hv_state)
1508

  
1509
  @staticmethod
1510
  def SimpleFillDiskState(disk_state):
1511
    """Fill an disk_state sub dict with cluster defaults.
1512

  
1513
    """
1514
    return FillDict(constants.DS_DEFAULTS, disk_state)
1515

  
1500 1516
  def FillND(self, node, nodegroup):
1501 1517
    """Return filled out ndparams for L{objects.NodeGroup} and L{objects.Node}
1502 1518

  

Also available in: Unified diff