Change in vdsm[master]: virt: stats: move balloon info in a method
fromani at redhat.com
fromani at redhat.com
Tue Apr 8 13:29:37 UTC 2014
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 <fromani at 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 <fromani at redhat.com>
More information about the vdsm-patches
mailing list