Simone Tiraboschi has uploaded a new change for review.

Change subject: packaging: setup: fixing action_type type
......................................................................

packaging: setup: fixing action_type type

action_type is retourned from the DB as an int but we need a string
for use it as a key for the decription map.
casting it.

Change-Id: Ic309c9ac4badc8ace307f32cd01ca03adb7ced2e
Bug-Url: https://bugzilla.redhat.com/1161012
Signed-off-by: Simone Tiraboschi <stira...@redhat.com>
---
M packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/upgrade/asynctasks.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/83/38583/1

diff --git 
a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/upgrade/asynctasks.py 
b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/upgrade/asynctasks.py
index 49754ec..f1f371a 100644
--- 
a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/upgrade/asynctasks.py
+++ 
b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/upgrade/asynctasks.py
@@ -210,8 +210,8 @@
                     'DC Name:           {name:30}'
                 ).format(
                     task_id=entry['task_id'],
-                    task_name=ASYNC_TASKS_MAP[entry['action_type']][0],
-                    task_desc=ASYNC_TASKS_MAP[entry['action_type']][1],
+                    task_name=ASYNC_TASKS_MAP[str(entry['action_type'])][0],
+                    task_desc=ASYNC_TASKS_MAP[str(entry['action_type'])][1],
                     started_at=entry['started_at'],
                     name=entry['name'],
                 )


-- 
To view, visit https://gerrit.ovirt.org/38583
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic309c9ac4badc8ace307f32cd01ca03adb7ced2e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Simone Tiraboschi <stira...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to