The sam handler generates a Jinja template as an intermediary step. During debugging complex templates it is sometimes useful to inspect this template. We delete this temporary file. While troubleshooting an issue we felt it is useful to have the option of keeping this file. This change allows us to pass a flag to keep the jinja file after processing. If we set skip_jinja_cleanup to True as a parameter the deletion is skipped.
The sam handler generates a Jinja template as an intermediary step. During debugging complex templates it is sometimes useful to inspect this template. We delete this temporary file. While troubleshooting an issue we felt it is useful to have the option of keeping this file. This change allows us to pass a flag to keep the
jinja
file after processing. If we setskip_jinja_cleanup
toTrue
as a parameter the deletion is skipped.