LUSetInstanceParam: don't assume memory is integer
authorGuido Trotter <ultrotter@google.com>
Tue, 12 May 2009 11:07:18 +0000 (12:07 +0100)
committerGuido Trotter <ultrotter@google.com>
Tue, 12 May 2009 11:30:00 +0000 (12:30 +0100)
commitade0e8cd4600ac57fa7a913cf26927f5662057e1
tree19fdc612e68649aa030ecac95de4c1361451e7de
parent5645d16b69267ec39dfc27ebbe6d8efa63a9a856
LUSetInstanceParam: don't assume memory is integer

LUSetInstanceParam currently assumes that the 'memory' value of a
call_instance_info result is an integer, while the rest of the code
explicitely converts it to int(). Converting it to int works around a
bug which prevents changing the memory allocation of a live instance if
the remote call returns the memory in string format.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py