Tomoki Sekiyama has uploaded a new change for review. Change subject: libvirtInterface: Convert some keys of mem_stats in getVmMemoryStats() ......................................................................
libvirtInterface: Convert some keys of mem_stats in getVmMemoryStats() libvirtInterface.mem_stats is a dictionary to convert keys of mem_stats from libvirt internal name to that of used in mom rules, but its value was not actually used. This patch fixes this. Change-Id: I9281a332419f4a7a52764e4def265d742080252c Signed-off-by: Tomoki Sekiyama <[email protected]> --- M mom/HypervisorInterfaces/libvirtInterface.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/98/19198/1 diff --git a/mom/HypervisorInterfaces/libvirtInterface.py b/mom/HypervisorInterfaces/libvirtInterface.py index a1bf71b..d5df85d 100644 --- a/mom/HypervisorInterfaces/libvirtInterface.py +++ b/mom/HypervisorInterfaces/libvirtInterface.py @@ -188,7 +188,7 @@ raise HypervisorInterfaceError('libvirt memoryStats() ' 'is not active') for key in set(self.mem_stats.keys()) & set(info.keys()): - ret[key] = info[key] + ret[self.mem_stats[key]] = info[key] return ret def _setStatsFields(self): -- To view, visit http://gerrit.ovirt.org/19198 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9281a332419f4a7a52764e4def265d742080252c Gerrit-PatchSet: 1 Gerrit-Project: mom Gerrit-Branch: master Gerrit-Owner: Tomoki Sekiyama <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
