diff --git a/CICD/make_files.py b/CICD/make_files.py index ba68fa85307bf7f67d4bf09c4f39b3f39f842785..b038b46f68ab140a8fb5bd628bed9b57532c0ba3 100644 --- a/CICD/make_files.py +++ b/CICD/make_files.py @@ -138,7 +138,7 @@ def make_nhc_config(inventory): import jinja2 with open('pre_templates/nhc.conf.j2') as f: template = jinja2.Template(f.read()) - with open('files/nhc.conf') as f: + with open('files/nhc.conf','w') as f: f.write(template.render()) def make_known_hosts(inventory):