From d0979597275d514b0b1a1266f98513b99fa1639e Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Fri, 26 Feb 2016 16:49:15 -0500 Subject: [PATCH] Recognize subclasses of list types Change-Id: I8b46d11368bf33ad073ed3b28eb2282ee70ffbe3 --- shade/task_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shade/task_manager.py b/shade/task_manager.py index e949e0f6f..47b9e0dbf 100644 --- a/shade/task_manager.py +++ b/shade/task_manager.py @@ -79,7 +79,7 @@ class Task(object): six.reraise(type(self._exception), self._exception, self._traceback) - if type(self._result) == list: + if isinstance(self._result, list): return meta.obj_list_to_dict(self._result) elif type(self._result) not in (bool, int, float, str, set, tuple, types.GeneratorType):