Check right disk template in inst set params
authorThomas Thrainer <thomasth@google.com>
Thu, 22 Aug 2013 09:11:03 +0000 (11:11 +0200)
committerThomas Thrainer <thomasth@google.com>
Thu, 22 Aug 2013 12:03:34 +0000 (14:03 +0200)
commit7bb0c47f560a2e83bc32df850847ffbb51843d7d
tree5ee9bbca14f3f9e8cb60713c1ee31327e9a0abf5
parentb01d9504864512fc1f6b308627ac1edf18198dec
Check right disk template in inst set params

While checking the parameters of the opcode for LUInstanceSetParams, the
already set disk_template was checked instead of the new one in the
opcode. This patch fixes this bug.

Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
lib/cmdlib/instance.py