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') )