Fix adding of disks to an instance
authorIustin Pop <iustin@google.com>
Tue, 20 Jan 2009 14:20:35 +0000 (14:20 +0000)
committerIustin Pop <iustin@google.com>
Tue, 20 Jan 2009 14:20:35 +0000 (14:20 +0000)
commit32388e6d2cc05a9b93b28c36f002462bba98c5c4
tree25dade74e8a7807dfbb83010e869076b852ef8a9
parent5dc626fd898ea59855e93d778834ab64144b2fdf
Fix adding of disks to an instance

The ConfigWriter.AllocateDRBDMinor requires the instance name, not the
instance object. The LUSetInstanceParms is passing wrongly the instance
object, which can cause breakage.

The patch also adds asserts to check for this mismatch in ConfigWriter.

Reviewed-by: ultrotter
lib/cmdlib.py
lib/config.py