From 1ccadb169feb869ec021576cfb7f7e9633b0d96f Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Barth Date: Sun, 11 Oct 2015 22:06:27 +0200 Subject: [PATCH] Simplify WorkflowExecution model since it always has a task list --- moto/swf/models/workflow_execution.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moto/swf/models/workflow_execution.py b/moto/swf/models/workflow_execution.py index 8a719f35..33e032e2 100644 --- a/moto/swf/models/workflow_execution.py +++ b/moto/swf/models/workflow_execution.py @@ -81,11 +81,11 @@ class WorkflowExecution(object): def to_full_dict(self): hsh = { "executionInfo": self.to_medium_dict(), - "executionConfiguration": {} + "executionConfiguration": { + "taskList": {"name": self.task_list} + } } #configuration - if hasattr(self, "task_list"): - hsh["executionConfiguration"]["taskList"] = {"name": self.task_list} for key in self._configuration_keys: attr = camelcase_to_underscores(key) if not hasattr(self, attr):