Revision b87a9c5f

b/lib/config.py
445 445
        lvnames.update(lv_list)
446 446
    return lvnames
447 447

  
448
  def _AllDisks(self):
449
    """Compute the list of all Disks.
450

  
451
    """
452
    disks = []
453
    for instance in self._config_data.instances.values():
454
      disks.extend(instance.disks)
455
    return disks
456

  
457
  def _AllNICs(self):
458
    """Compute the list of all NICs.
459

  
460
    """
461
    nics = []
462
    for instance in self._config_data.instances.values():
463
      nics.extend(instance.nics)
464
    return nics
465

  
448 466
  def _AllIDs(self, include_temporary):
449 467
    """Compute the list of all UUIDs and names we have.
450 468

  
......
2038 2056
            self._config_data.nodes.values() +
2039 2057
            self._config_data.nodegroups.values() +
2040 2058
            self._config_data.networks.values() +
2059
            self._AllDisks() +
2060
            self._AllNICs() +
2041 2061
            [self._config_data.cluster])
2042 2062

  
2043 2063
  def _OpenConfig(self, accept_foreign):

Also available in: Unified diff