bundles/simple-icinga-dashboard: only resolve faults when rendering the template, not earlier
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-04-10 16:33:32 +02:00
parent 36bd6f5755
commit 9618e388c3
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 5 additions and 4 deletions

View file

@ -0,0 +1,4 @@
<%
from tomlkit import dumps as toml_dumps
from bundlewrap.utils.text import toml_clean
%>${toml_clean(toml_dumps(repo.libs.toml.dict_to_toml(node.metadata['simple-icinga-dashboard'])))}

View file

@ -1,6 +1,3 @@
from tomlkit import dumps as toml_dumps
from bundlewrap.utils.text import toml_clean
users = {
'icinga_dashboard': {
@ -24,7 +21,7 @@ git_deploy = {
files = {
'/opt/simple-icinga-dashboard/src/config.toml': {
'content': toml_clean(toml_dumps(repo.libs.toml.dict_to_toml(node.metadata['simple-icinga-dashboard']))),
'content_type': 'mako',
'needs': {
'git_deploy:/opt/simple-icinga-dashboard/src',
},