Merge "Use ipv4 in server launch inventory output"

This commit is contained in:
Zuul 2020-05-27 05:13:16 +00:00 committed by Gerrit Code Review
commit bca1b3b4c4

View File

@ -105,7 +105,7 @@ def print_inventory_yaml(server, ip4, ip6):
print("Put the following into inventory/openstack.yaml")
print("\n")
print(" {name}:".format(name=server.name))
print(" ansible_host: {ip}".format(ip=ip6 or ip4))
print(" ansible_host: {ip}".format(ip=ip4 or ip6))
print(" location:")
print(" cloud: {cloud}".format(cloud=server.location['cloud']))
print(" region_name: {region_name}".format(