jp (output/template): fixed template output (media_dir was missing)

This commit is contained in:
Goffi 2018-03-21 19:07:00 +01:00
commit f1b9ef2c21

View file

@ -48,6 +48,8 @@ class Template(object):
command's template_data_mapping attribute will be used if it exists to convert
data to a dict usable by the template.
"""
# media_dir is needed for the template
self.host.media_dir = self.host.bridge.getConfig('', 'media_dir')
cmd = self.host.command
try:
template_path = cmd.TEMPLATE