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 %} ] }"""