Francesco Romani has uploaded a new change for review. Change subject: virt: stats: move balloon info in a method ......................................................................
virt: stats: move balloon info in a method this patch moves the balloon info gathering in a separate method, for the sake of consistency. Change-Id: If645f1e23a00cc3b0730d1b020f9328e182cdb18 Signed-off-by: Francesco Romani <from...@redhat.com> --- M vdsm/virt/vm.py 1 file changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/55/26555/1 diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py index 894f717..e385d7f 100644 --- a/vdsm/virt/vm.py +++ b/vdsm/virt/vm.py @@ -2418,8 +2418,7 @@ except Exception: return stats - stats['balloonInfo'] = self._getBalloonInfo() - + self._addBalloonInfoStats(stats) self._addMigrationVmStats(stats) return stats @@ -2512,6 +2511,9 @@ if self.isMigrating(): stats['migrationProgress'] = self.migrateStatus()['progress'] + def _addBalloonInfoStats(self, stats): + stats['balloonInfo'] = self._getBalloonInfo() + def _addGuestInfoStats(self, stats): stats.update(self.guestAgent.getGuestInfo()) memUsage = 0 -- To view, visit http://gerrit.ovirt.org/26555 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If645f1e23a00cc3b0730d1b020f9328e182cdb18 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Francesco Romani <from...@redhat.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches