Jiří Moskovčák has uploaded a new change for review.

Change subject: fixed exception when trying to access dict item
......................................................................

fixed exception when trying to access dict item

Change-Id: I9faa898efa9e54844f1816c75d51d3cb94c1c50a
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1092075
Signed-off-by: Jiri Moskovcak <[email protected]>
---
M ovirt_hosted_engine_ha/agent/state_machine.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha 
refs/changes/88/27588/1

diff --git a/ovirt_hosted_engine_ha/agent/state_machine.py 
b/ovirt_hosted_engine_ha/agent/state_machine.py
index f3e3567..480e9ba 100644
--- a/ovirt_hosted_engine_ha/agent/state_machine.py
+++ b/ovirt_hosted_engine_ha/agent/state_machine.py
@@ -129,8 +129,8 @@
             new_data["best_engine_status"] = lm["engine-health"]
             new_data["best_engine_host_id"] = self.hosted_engine.host_id
         else:
-            new_data["best_engine_status"] = best_engine.engine_status
-            new_data["best_engine_host_id"] = best_engine.host_id
+            new_data["best_engine_status"] = best_engine["engine_status"]
+            new_data["best_engine_host_id"] = best_engine["host_id"]
 
         # Save the best score remote values
         # we can't compare them because we first need to fully initialize


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9faa898efa9e54844f1816c75d51d3cb94c1c50a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: ovirt-hosted-engine-ha-1.1
Gerrit-Owner: Jiří Moskovčák <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to