Milan Zamazal has uploaded a new change for review.
Change subject: virt: Minor typo fixes in Vm.getStats docstring
......................................................................
virt: Minor typo fixes in Vm.getStats docstring
Change-Id: I4e07c9b237cf0af22ec8d0f7618ab655839839f2
Signed-off-by: Milan Zamazal <mzamazal(a)redhat.com>
---
M vdsm/virt/vm.py
1 file changed, 3 insertions(+), 4 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/50/63550/1
diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index c936987..2526051 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -1180,13 +1180,12 @@
def getStats(self):
"""
- used by API.Vm.getStats
+ Used by API.Vm.getStats.
- WARNING: this method should only gather statistics by copying data.
- Especially avoid costly and dangerous ditrect calls to the _dom
+ WARNING: This method should only gather statistics by copying data.
+ Especially avoid costly and dangerous direct calls to the _dom
attribute. Use the periodic operations instead!
"""
-
stats = {'statusTime': self._get_status_time()}
if self.lastStatus == vmstatus.DOWN:
stats.update(self._getDownVmStats())
--
To view, visit
https://gerrit.ovirt.org/63550
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e07c9b237cf0af22ec8d0f7618ab655839839f2
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Milan Zamazal <mzamazal(a)redhat.com>