Small change in the instance disk creation path
authorIustin Pop <iustin@google.com>
Mon, 19 Jan 2009 11:10:10 +0000 (11:10 +0000)
committerIustin Pop <iustin@google.com>
Mon, 19 Jan 2009 11:10:10 +0000 (11:10 +0000)
commit796cab27f717490434cf75036dab7bc09cf0167d
tree7f26d08eaf3cdd2a305bb52f5c909e9b4763386e
parent6c6265186c60c79b243b170fa7bdeddb47d1df32
Small change in the instance disk creation path

For future propagation of error messages from backend to cmdlib and to
the job log, just having True/False return from the disk creation
function is not enough.

This patch converts these functions (_CreateDisks, _CreateBlockDevOnXXX)
to raise exception on errors, and otherwise the return value is None.

Reviewed-by: ultrotter
lib/cmdlib.py