From 3e2c7dec83c34cce6b541924e5ea25c5067441cb Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Barth Date: Wed, 30 Sep 2015 12:50:17 +0200 Subject: [PATCH] Fix json template for listing SWF domains --- moto/swf/responses.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moto/swf/responses.py b/moto/swf/responses.py index 6bfce1ffb..57cebd7b6 100644 --- a/moto/swf/responses.py +++ b/moto/swf/responses.py @@ -83,13 +83,13 @@ class SWFResponse(BaseResponse): LIST_DOMAINS_TEMPLATE = """{ "domainInfos": [ - {% for domain in domains %} + {%- for domain in domains %} { "description": "{{ domain.description }}", "name": "{{ domain.name }}", "status": "{{ domain.status }}" - } - {% endfor %} + }{% if not loop.last %},{% endif %} + {%- endfor %} ] }"""