Revision c417e115 lib/backend.py

b/lib/backend.py
1492 1492
  return result
1493 1493

  
1494 1494

  
1495
def BlockdevAssemble(disk, owner, as_primary):
1495
def BlockdevAssemble(disk, owner, as_primary, idx):
1496 1496
  """Activate a block device for an instance.
1497 1497

  
1498 1498
  This is a wrapper over _RecursiveAssembleBD.
......
1507 1507
    if isinstance(result, bdev.BlockDev):
1508 1508
      # pylint: disable-msg=E1103
1509 1509
      result = result.dev_path
1510
      if as_primary:
1511
        _SymlinkBlockDev(owner, result, idx)
1510 1512
  except errors.BlockDeviceError, err:
1511 1513
    _Fail("Error while assembling disk: %s", err, exc=True)
1514
  except OSError, err:
1515
    _Fail("Error while symlinking disk: %s", err, exc=True)
1512 1516

  
1513 1517
  return result
1514 1518

  

Also available in: Unified diff