File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11output "ip4" {
22 description = " IPv4 address of the intance."
3- value = var. enable_public_ipv4 ? scaleway_instance_server. this . public_ip : scaleway_instance_server. this . private_ip
3+ value = var. enable_public_ipv4 ? (var . routed_ip_enabled ? scaleway_instance_ip . public_ipv4 [ 0 ] . address : scaleway_instance_server. this . public_ip ) : scaleway_instance_server. this . private_ip
44}
55
66output "ip6" {
77 description = " IPv6 address of the instance."
8- value = scaleway_instance_server. this . ipv6_address
8+ value = var . enable_ipv6 && var . routed_ip_enabled ? one ([ for item in scaleway_instance_server . this . public_ips [ * ] . address : item if can ( regex ( " : " , item))]) : scaleway_instance_server. this . ipv6_address
99}
1010
1111output "name" {
You can’t perform that action at this time.
0 commit comments