From aa275796cb5827a32646adf3fa15290f21d4c6fc Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Tue, 3 Dec 2019 06:20:47 +0100 Subject: [PATCH] Fix DigitalOcean controller and worker ipv4/ipv6 outputs (#594) * Fix controller and worker ipv4/ipv4 outputs to be lists of strings * With Terraform v0.11 syntax, an enclosing list was required to coerce the output to be a list of strings * With Terraform v0.12 syntax, the enclosing list shouldn't be needed --- digital-ocean/container-linux/kubernetes/outputs.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/digital-ocean/container-linux/kubernetes/outputs.tf b/digital-ocean/container-linux/kubernetes/outputs.tf index fe5338ef..50934e37 100644 --- a/digital-ocean/container-linux/kubernetes/outputs.tf +++ b/digital-ocean/container-linux/kubernetes/outputs.tf @@ -12,19 +12,19 @@ output "workers_dns" { } output "controllers_ipv4" { - value = [digitalocean_droplet.controllers.*.ipv4_address] + value = digitalocean_droplet.controllers.*.ipv4_address } output "controllers_ipv6" { - value = [digitalocean_droplet.controllers.*.ipv6_address] + value = digitalocean_droplet.controllers.*.ipv6_address } output "workers_ipv4" { - value = [digitalocean_droplet.workers.*.ipv4_address] + value = digitalocean_droplet.workers.*.ipv4_address } output "workers_ipv6" { - value = [digitalocean_droplet.workers.*.ipv6_address] + value = digitalocean_droplet.workers.*.ipv6_address } # Outputs for custom firewalls