Fix error handling in _CheckNodeFreeMemory
authorIustin Pop <iustin@google.com>
Fri, 4 Jul 2008 12:01:31 +0000 (12:01 +0000)
committerIustin Pop <iustin@google.com>
Fri, 4 Jul 2008 12:01:31 +0000 (12:01 +0000)
commitf643c12887df1447dbcc29f63045edc5a692489c
treed74db6979869166e757cb9d53cbd7ce3deb47a26
parent4cc10b9caa02ca7454ef0022779a1c8624ce09cf
Fix error handling in _CheckNodeFreeMemory

If the remote node is down, the rpc layer will return 'False' for the
node result, and not a dict.

The patch adds extra checks that we have the node and that its result is
a dict.

Reviewed-by: imsnah
lib/cmdlib.py