Skip to content
Snippets Groups Projects
Unverified Commit 9a8bf0e3 authored by Maxime Leroy's avatar Maxime Leroy Committed by GitHub
Browse files

fix(contrib/terraform): do not add access_ip when not wanted (#9869)

parent 97dfdcd8
No related branches found
No related tags found
No related merge requests found
......@@ -298,6 +298,9 @@ def openstack_host(resource, module_name):
if 'floating_ip' in raw_attrs:
attrs['private_ipv4'] = raw_attrs['network.0.fixed_ip_v4']
if 'metadata.use_access_ip' in raw_attrs and raw_attrs['metadata.use_access_ip'] == "0":
attrs.pop('access_ip')
try:
if 'metadata.prefer_ipv6' in raw_attrs and raw_attrs['metadata.prefer_ipv6'] == "1":
attrs.update({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment