change multinode file genetare function in newton version

Change-Id: I1d8a34423c92e3668866ffa2318de6e4c6e41ffe
This commit is contained in:
Zhou Ya
2016-12-08 19:33:13 +08:00
parent 4c15a8763f
commit 115c3e9466

View File

@@ -29,7 +29,7 @@ def clean_inventory_file(file_path, filename):
fp.close()
node_names = ['control', 'network', 'compute', 'monitoring',
'storage', 'baremetal:children']
for section_name in node_names[0:4]:
for section_name in node_names[0:5]:
next_name_index = node_names.index('%s' % section_name)
match = re.search(r"\[%s\](.*)\[%s\]" % (
section_name,