bundle/hedgedoc improve config rendering to not produce errors with faults
This commit is contained in:
parent
3d3994789e
commit
09da9a8d92
2 changed files with 4 additions and 3 deletions
3
bundles/hedgedoc/files/config.json
Normal file
3
bundles/hedgedoc/files/config.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
<%
|
||||
from bundlewrap.metadata import metadata_to_json
|
||||
%>${metadata_to_json(repo.libs.faults.resolve_faults(node.metadata.get('hedgedoc/config')))}
|
|
@ -1,5 +1,3 @@
|
|||
from bundlewrap.metadata import metadata_to_json
|
||||
|
||||
repo.libs.tools.require_bundle(node, 'nodejs')
|
||||
|
||||
directories = {
|
||||
|
@ -22,7 +20,7 @@ git_deploy = {
|
|||
|
||||
files = {
|
||||
'/opt/hedgedoc/config.json': {
|
||||
'content': metadata_to_json(node.metadata.get('hedgedoc/config')),
|
||||
'content_type': 'mako',
|
||||
'needs': {
|
||||
'git_deploy:/opt/hedgedoc',
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue