Revision b54ecf12 lib/cmdlib/instance_storage.py

b/lib/cmdlib/instance_storage.py
510 510
                              logical_id=logical_id_fn(idx, disk_index, disk),
511 511
                              iv_name="disk/%d" % disk_index,
512 512
                              mode=disk[constants.IDISK_MODE],
513
                              params=params)
513
                              params=params,
514
                              spindles=disk.get(constants.IDISK_SPINDLES))
514 515
      disk_dev.name = disk.get(constants.IDISK_NAME, None)
515 516
      disk_dev.uuid = lu.cfg.GenerateUniqueID(lu.proc.GetECId())
516 517
      disks.append(disk_dev)
......
833 834
        disk.logical_id = new_id
834 835
      if changes:
835 836
        disk.Update(size=changes.get(constants.IDISK_SIZE, None),
836
                    mode=changes.get(constants.IDISK_MODE, None))
837
                    mode=changes.get(constants.IDISK_MODE, None),
838
                    spindles=changes.get(constants.IDISK_SPINDLES, None))
837 839

  
838 840
    # change primary node, if needed
839 841
    if self.op.nodes:

Also available in: Unified diff