Change in vdsm[master]: vm: report exit reason on restore state fail

fromani at redhat.com fromani at redhat.com
Wed May 14 20:11:55 UTC 2014


Francesco Romani has uploaded a new change for review.

Change subject: vm: report exit reason on restore state fail
......................................................................

vm: report exit reason on restore state fail

the exit reason code needs to be reported an
all code paths. It was mistakenly left out
on the restoreState error path.

This patch fixes that.

Change-Id: Ifda6852e5d91cfb17d8c7c2d6a0997346854ec83
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M vdsm/virt/vm.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/03/27703/1

diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index f1c36f8..2a67ea3 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -2400,7 +2400,7 @@
                         "Wake up from hibernation failed")
                 else:
                     self.conf['exitMessage'] = exitMessage
-                    self.conf['exitReason'] = exitReasonCode
+                self.conf['exitReason'] = exitReasonCode
             self.log.debug("Changed state to Down: %s (code=%i)",
                            exitMessage, exitReasonCode)
         except DoubleDownError:


-- 
To view, visit http://gerrit.ovirt.org/27703
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifda6852e5d91cfb17d8c7c2d6a0997346854ec83
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