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.
This commit is contained in:
parent
508b392697
commit
1b20f21a75
2 changed files with 14 additions and 14 deletions
|
|
@ -443,7 +443,7 @@ def test_bootstrap_actions():
|
|||
BootstrapAction(
|
||||
name='bs1',
|
||||
path='path/to/script',
|
||||
bootstrap_action_args=['arg1', 'arg2']),
|
||||
bootstrap_action_args=['arg1', 'arg2&arg3']),
|
||||
BootstrapAction(
|
||||
name='bs2',
|
||||
path='path/to/anotherscript',
|
||||
|
|
@ -551,7 +551,7 @@ def test_steps():
|
|||
input='s3n://elasticmapreduce/samples/wordcount/input',
|
||||
output='s3n://output_bucket/output/wordcount_output'),
|
||||
StreamingStep(
|
||||
name='My wordcount example2',
|
||||
name='My wordcount example & co.',
|
||||
mapper='s3n://elasticmapreduce/samples/wordcount/wordSplitter2.py',
|
||||
reducer='aggregate',
|
||||
input='s3n://elasticmapreduce/samples/wordcount/input2',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue