bundles/miniflux: use metadata.get()

This commit is contained in:
Franzi 2023-08-27 09:17:34 +02:00
parent 0190555f16
commit 50cba7cb49
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -2,8 +2,8 @@ files = {
'/etc/miniflux.conf': {
'content_type': 'mako',
'context': {
'dbpassword': node.metadata['postgresql']['roles']['miniflux']['password'],
'base_url': node.metadata['miniflux']['domain'],
'dbpassword': node.metadata.get('postgresql/roles/miniflux/password'),
'base_url': node.metadata.get('miniflux/domain'),
},
'triggers': {
'svc_systemd:miniflux:restart',