Revision b6135bbc lib/objects.py

b/lib/objects.py
441 441
    """
442 442
    if self.dev_type == constants.LD_LV:
443 443
      return "/dev/%s/%s" % (self.logical_id[0], self.logical_id[1])
444
    elif self.dev_type == constants.LD_BLOCKDEV:
445
      return self.logical_id[1]
444 446
    return None
445 447

  
446 448
  def ChildrenNeeded(self):
......
483 485
    devices needs to (or can) be assembled.
484 486

  
485 487
    """
486
    if self.dev_type in [constants.LD_LV, constants.LD_FILE]:
488
    if self.dev_type in [constants.LD_LV, constants.LD_FILE,
489
                         constants.LD_BLOCKDEV]:
487 490
      result = [node]
488 491
    elif self.dev_type in constants.LDS_DRBD:
489 492
      result = [self.logical_id[0], self.logical_id[1]]

Also available in: Unified diff