From d080a61d69737473989ffeb21cbfe6a466dd295c Mon Sep 17 00:00:00 2001 From: Maxime Guyot Date: Fri, 23 Feb 2018 14:29:08 +0100 Subject: [PATCH] Add a warning in openstack_hostnames_ips.yml Change-Id: I94de38ab0d314e7a029680ec6fc95a3f1bc056e2 --- osa_toolkit/filesystem.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osa_toolkit/filesystem.py b/osa_toolkit/filesystem.py index 099e57d2b2..4e302628b6 100644 --- a/osa_toolkit/filesystem.py +++ b/osa_toolkit/filesystem.py @@ -188,12 +188,13 @@ def write_hostnames(save_path, hostnames_ips): with open(hostnames_ip_file, 'wb') as f: f.write( - json.dumps( + ('# This file is managed by openstack-ansible. No manual edits.\n' + + json.dumps( hostnames_ips, indent=4, separators=(',', ': '), sort_keys=True - ).encode('ascii') + )).encode('ascii') )