Martin Sivák has uploaded a new change for review. Change subject: Make sure the balloon info uses numbers when provided by VDSM ......................................................................
Make sure the balloon info uses numbers when provided by VDSM VDSM needs to strings for transporting large numeric values over xml-rpc. Make sure MoM can properly process those. Change-Id: I74b227a5d945397a69702fc0758d864b33014fc6 Signed-off-by: Martin Sivak <[email protected]> --- M mom/HypervisorInterfaces/vdsmInterface.py 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/07/17207/1 diff --git a/mom/HypervisorInterfaces/vdsmInterface.py b/mom/HypervisorInterfaces/vdsmInterface.py index 5215ed2..1ce8f4c 100644 --- a/mom/HypervisorInterfaces/vdsmInterface.py +++ b/mom/HypervisorInterfaces/vdsmInterface.py @@ -140,6 +140,10 @@ self._check_status(response) balloon_info = response['statsList'][0]['balloonInfo'] if balloon_info: + # Make sure the values are numbers, VDSM is using str + # to avoid xml-rpc issues + for key in balloon_info.iterkeys(): + balloon_info[key] = int(balloon_info[key]) return balloon_info except vdsmException, e: e.handle_exception() -- To view, visit http://gerrit.ovirt.org/17207 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I74b227a5d945397a69702fc0758d864b33014fc6 Gerrit-PatchSet: 1 Gerrit-Project: mom Gerrit-Branch: master Gerrit-Owner: Martin Sivák <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
