Commit 43e99cff authored by Guido Trotter's avatar Guido Trotter
Browse files

_GenerateDiskTemplate: correct file disk index

Currently when adding disks the base for the index is not taken into
account, and disk 0 is added twice.

Reviewed-by: iustinp
parent f8e7ddca
......@@ -4028,7 +4028,7 @@ def _GenerateDiskTemplate(lu, template_name,
iv_name="disk/%d" % disk_index,
logical_id=(file_driver,
"%s/disk%d" % (file_storage_dir,
idx)),
disk_index)),
mode=disk["mode"])
disks.append(disk_dev)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment