Change in vdsm[master]: fix access to watchdog event actions
lhornyak at redhat.com
lhornyak at redhat.com
Mon Apr 22 13:42:59 UTC 2013
Laszlo Hornyak has uploaded a new change for review.
Change subject: fix access to watchdog event actions
......................................................................
fix access to watchdog event actions
The data structure 'actionEnum' is a a list, but it was accessed as
function.
Change-Id: I3f64b6c6508c23285b9a4a159be7a16cdf64ae9c
Signed-off-by: Laszlo Hornyak <lhornyak at redhat.com>
---
M vdsm/libvirtvm.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/34/14134/1
diff --git a/vdsm/libvirtvm.py b/vdsm/libvirtvm.py
index bd72e29..a9768a6 100644
--- a/vdsm/libvirtvm.py
+++ b/vdsm/libvirtvm.py
@@ -2435,7 +2435,7 @@
actionEnum = ['ignore', 'pause', 'reset', 'destroy', 'shutdown', 'log']
self._watchdogEvent["time"] = time.time()
- self._watchdogEvent["action"] = actionEnum(action)
+ self._watchdogEvent["action"] = actionEnum[action]
self.log.info("Watchdog event comes from guest %s. "
"Action: %s", self.conf['vmName'],
actionToString(action))
--
To view, visit http://gerrit.ovirt.org/14134
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3f64b6c6508c23285b9a4a159be7a16cdf64ae9c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Laszlo Hornyak <lhornyak at redhat.com>
More information about the vdsm-patches
mailing list