backend.DrbdAttachNet: don't ignore Open() errors
authorIustin Pop <iustin@google.com>
Mon, 9 Feb 2009 09:24:38 +0000 (09:24 +0000)
committerIustin Pop <iustin@google.com>
Mon, 9 Feb 2009 09:24:38 +0000 (09:24 +0000)
commitd3da87b8739dbf94b3a9c4d7d5f9d64bb0ab0f60
tree484ac2d5348cf8322a1556bcd613c1f2475f899c
parent0959c824697e82c626dd8eceee891f738dbb3278
backend.DrbdAttachNet: don't ignore Open() errors

Currently the return value or errors from the block device Open() method
are ignored. This patch catches any BlockDeviceErrors and returns a
well-formatted result.

Reviewed-by: ultrotter
lib/backend.py