From 1b20f21a75430c765348b150c0f84c08052c2894 Mon Sep 17 00:00:00 2001 From: Ash Berlin-Taylor Date: Wed, 21 Mar 2018 15:57:50 +0000 Subject: [PATCH] Escape EMR template fields to avoid invalid XML responses (#1467) I had an EMR step that contained a `&` and this caused the ListStep call to fail. I've added the `| escape` filter to handle it in this case and a few other cases that look like they could suffer the same fate. --- moto/emr/responses.py | 24 ++++++++++++------------ tests/test_emr/test_emr.py | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/moto/emr/responses.py b/moto/emr/responses.py index 8442e401..49e37ab9 100644 --- a/moto/emr/responses.py +++ b/moto/emr/responses.py @@ -462,10 +462,10 @@ DESCRIBE_JOB_FLOWS_TEMPLATE = """