Change in vdsm[master]: virt: make _initVmStats public
fromani at redhat.com
fromani at redhat.com
Mon Mar 23 11:58:55 UTC 2015
Francesco Romani has uploaded a new change for review.
Change subject: virt: make _initVmStats public
......................................................................
virt: make _initVmStats public
rename _initVmStats into startVmStats with no changes in
code flow.
Change-Id: Id19ed15cc6743dba3baee13643ac39a5814b8ade
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M tests/vmApiTests.py
M vdsm/virt/vm.py
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/36/39036/1
diff --git a/tests/vmApiTests.py b/tests/vmApiTests.py
index 113c7ba..630be4c 100644
--- a/tests/vmApiTests.py
+++ b/tests/vmApiTests.py
@@ -61,7 +61,7 @@
@contextmanager
def ensureVmStats(vm):
- vm._initVmStats()
+ vm.startVmStats()
try:
yield vm
finally:
diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index e1fa3c0..80911c6 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -2000,7 +2000,7 @@
return domxml.toxml()
- def _initVmStats(self):
+ def startVmStats(self):
self._vmStats = VmStatsThread(self)
self._vmStats.start()
self._guestEventTime = self._startTime
@@ -2111,7 +2111,7 @@
# VmStatsThread may use block devices info from libvirt.
# So, run it after you have this info
- self._initVmStats()
+ self.startVmStats()
try:
self.guestAgent.connect()
except Exception:
--
To view, visit https://gerrit.ovirt.org/39036
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id19ed15cc6743dba3baee13643ac39a5814b8ade
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