Merge "Use key as name if not provided in inventory yaml"

This commit is contained in:
Zuul 2022-06-01 07:52:57 +00:00 committed by Gerrit Code Review
commit accab82f0c

View File

@ -187,6 +187,9 @@ def _process_baremetal_data(data_source, groups, hostvars):
continue
host = file_data[name]
if 'name' not in host:
host['name'] = name
# Perform basic validation
node_net_data = host.get('node_network_data')
ipv4_addr = host.get('ipv4_address')