Switch the blockdev_shutdown rpc to (status, data)
authorIustin Pop <iustin@google.com>
Tue, 10 Feb 2009 14:44:07 +0000 (14:44 +0000)
committerIustin Pop <iustin@google.com>
Tue, 10 Feb 2009 14:44:07 +0000 (14:44 +0000)
commitcacfd1fdd4a9fade7526d5da9de72ec147f27161
tree295ca2cb7b406026cf05a00c0b3835eb07145c5a
parent53c14ef1d9debcebf82861dcdb1659a72246f473
Switch the blockdev_shutdown rpc to (status, data)

This converts the backend and cmdlib modules to a (status, data)
implementation of the blockdev_shutdown rpc call. bdev.py is not yet
converted, so we don't actually have error information.

We also fix a bug in _ShutdownInstanceDisks by not reusing a variable.

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