Read disk template from export info
authorIustin Pop <iustin@google.com>
Fri, 9 Apr 2010 12:58:32 +0000 (14:58 +0200)
committerIustin Pop <iustin@google.com>
Mon, 12 Apr 2010 13:56:58 +0000 (15:56 +0200)
commitf276c4b5558338ba7832b5a92b822f0695a5ac6c
treed42ce118329a0ade0b46fd7694d4cc7bbd14254c
parentc1c314268a3d757b480780c1658229c0df0c06cc
Read disk template from export info

This patch changes the instance import to read the disk template
automatically from the export info, if the opcode doesn't already
specify a disk template.

To do this, we have a couple of additional changes:

- change from required parameter to optional one for disk_template
- move check for disabled file storage at ./configure time to the
  generic _CheckDiskTemplate checker
- move checks of the disk template from CheckArguments to CheckPrereq

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/cmdlib.py