Prevent errors when xenvg is broken cluster verify
authorIustin Pop <iustin@google.com>
Fri, 24 Apr 2009 08:43:01 +0000 (08:43 +0000)
committerIustin Pop <iustin@google.com>
Fri, 24 Apr 2009 08:43:01 +0000 (08:43 +0000)
commit9a198532ba9d3f3badbe0e516e82127e08ed0cae
tree91c96b2186227399848180ab989b9cb6bca9e0b3
parent949bdabea1ccd4ef88a4bd695a5c566a154d1f35
Prevent errors when xenvg is broken cluster verify

When vg_name is not returned at all, we currently abort with an internal
error. This is because we don't catch KeyError.

This patch adds a custom message for this case, and also adds KeyError
to the list of catched exceptions, just for safety.

On the other hand, we could also just remove this piece of code since
it's not used at all the ["dfree"] value.

Reviewed-by: ultrotter
lib/cmdlib.py