projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8e7ddc
)
_GenerateDiskTemplate: correct file disk index
author
Guido Trotter
<ultrotter@google.com>
Wed, 11 Feb 2009 16:23:11 +0000
(16:23 +0000)
committer
Guido Trotter
<ultrotter@google.com>
Wed, 11 Feb 2009 16:23:11 +0000
(16:23 +0000)
Currently when adding disks the base for the index is not taken into
account, and disk 0 is added twice.
Reviewed-by: iustinp
lib/cmdlib.py
patch
|
blob
|
history
diff --git
a/lib/cmdlib.py
b/lib/cmdlib.py
index
58b4e03
..
b709455
100644
(file)
--- a/
lib/cmdlib.py
+++ b/
lib/cmdlib.py
@@
-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: