Support variables in templates with timeout (#66990)

This commit is contained in:
Mike Degatano 2022-02-21 12:56:20 -05:00 committed by GitHub
parent 0dfc4ec9be
commit 8ea6cbc257
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 1 deletions

View file

@ -346,7 +346,7 @@ async def handle_render_template(
if timeout:
try:
timed_out = await template_obj.async_render_will_timeout(
timeout, strict=msg["strict"]
timeout, variables, strict=msg["strict"]
)
except TemplateError as ex:
connection.send_error(msg["id"], const.ERR_TEMPLATE_ERROR, str(ex))