jp (output/template): fixed template output (media_dir was missing)
This commit is contained in:
parent
a1f953f825
commit
f1b9ef2c21
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue