Skip to content

Commit 710665e

Browse files
author
Carlos Konstanski
committed
Service dependencies
Add a newline to the end of each template call. The template was not taking care of this. Issue: CIRRUS-4625
1 parent 9debb52 commit 710665e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

puppetdb_stencil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def render_resources(database, resource_type, localsite, template_names):
7272
nameparts = name.split('_')
7373
if nameparts[0].lower() == object_name and name not in envs_to_ignore:
7474
dto['parameters'].append({'_'.join(nameparts[1:]).lower(): os.environ[name].lower()})
75-
icinga_config += template.render(dto=dto)
75+
icinga_config += template.render(dto=dto) + '\n'
7676
# collect child service dependencies under parent service_description
7777
for tag in resource.tags:
7878
if 'parent:' in tag:
@@ -103,7 +103,7 @@ def render_resources(database, resource_type, localsite, template_names):
103103
'execution_failure_criteria': 'w,c,u,p'
104104
}]
105105
}
106-
icinga_config += template.render(dto=dto)
106+
icinga_config += template.render(dto=dto) + '\n'
107107
return icinga_config
108108

109109

0 commit comments

Comments
 (0)