Revision 644eeef9 lib/objects.py

b/lib/objects.py
379 379

  
380 380
    return ret
381 381

  
382
  def FindDisk(self, name):
383
    """Find a disk given having a specified name.
384

  
385
    This will return the disk which has the given iv_name.
386

  
387
    """
388
    for disk in self.disks:
389
      if disk.iv_name == name:
390
        return disk
391

  
392
    return None
393

  
382 394

  
383 395
class OS(ConfigObject):
384 396
  """Config object representing an operating system."""

Also available in: Unified diff