Fix gnt-cluster verify with diskless instances
authorAdeodato Simo <dato@google.com>
Wed, 15 Dec 2010 17:40:30 +0000 (17:40 +0000)
committerAdeodato Simo <dato@google.com>
Wed, 15 Dec 2010 18:18:39 +0000 (18:18 +0000)
commit4f5c2533015887e31173cf84ebbc1ed7537c62d8
treebb3263a16cf719556e7324e2c5d78d2c321794e2
parent5fd6b69479c09ddac17121a31ec18504b089cf37
Fix gnt-cluster verify with diskless instances

`gnt-cluster verify` was failing with KeyError if there was any
diskless instance in the cluster. This was because _CollectDiskInfo()
was not including these instances in the returned dictionary, but they
were expected to be present in LUVerifyCluster.Exec().

With this commit, we ensure that the dictionary returned by _CollectDiskInfo
includes entries for diskless instances as well.

Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py