Fix public IP for Packet.net Terraform Provider
Packet.net Terraform provider recently switched to
the public IPv4 address being .1 not .0:
We were getting the address from:
network.0.address
this patch switches to access_public_ipv4 to fix it.
@@ -34,8 +34,8 @@ resource "packet_device" "worker1"{
}
output "master.public_ip" {
- value = "${packet_device.master.network.0.address}"
+ value = "${packet_device.master.access_public_ipv4}"
}
output "worker1.public_ip" {
- value = "${packet_device.worker1.network.0.address}"
+ value = "${packet_device.worker1.access_public_ipv4}"
}
