bundle/hedgedoc improve config rendering to not produce errors with faults
kunsi/bundlewrap/pipeline/head This commit looks good Details
kunsi/bundlewrap/pipeline/pr-main Build started... Details

This commit is contained in:
Sophie Schiller 2021-09-11 20:06:17 +02:00
parent 3d3994789e
commit 09da9a8d92
2 changed files with 4 additions and 3 deletions

View 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')))}

View File

@ -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',
},