_GenerateDiskTemplate: use base_index in the name
authorGuido Trotter <ultrotter@google.com>
Tue, 14 Jul 2009 13:42:58 +0000 (15:42 +0200)
committerGuido Trotter <ultrotter@google.com>
Tue, 14 Jul 2009 15:07:42 +0000 (17:07 +0200)
commitfb4b324bfd69df07f901b881b78f9b9438a756e6
tree285c10a7575aeb24cac1a0486a389aebd7e87a3c
parentb28904425b8569b19d6194d83caf7f1e146dce4c
_GenerateDiskTemplate: use base_index in the name

Currently if a disk is added later the base_index is not considered, and
all the disks are called disk0. This patch fixes it.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/cmdlib.py