Add a warning in openstack_hostnames_ips.yml
Change-Id: I94de38ab0d314e7a029680ec6fc95a3f1bc056e2
This commit is contained in:
parent
5d61ed448c
commit
d080a61d69
@ -188,12 +188,13 @@ def write_hostnames(save_path, hostnames_ips):
|
|||||||
|
|
||||||
with open(hostnames_ip_file, 'wb') as f:
|
with open(hostnames_ip_file, 'wb') as f:
|
||||||
f.write(
|
f.write(
|
||||||
json.dumps(
|
('# This file is managed by openstack-ansible. No manual edits.\n'
|
||||||
|
+ json.dumps(
|
||||||
hostnames_ips,
|
hostnames_ips,
|
||||||
indent=4,
|
indent=4,
|
||||||
separators=(',', ': '),
|
separators=(',', ': '),
|
||||||
sort_keys=True
|
sort_keys=True
|
||||||
).encode('ascii')
|
)).encode('ascii')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user