From a6bcb82cdea9298569b369a6d72cce32c5781cd2 Mon Sep 17 00:00:00 2001 From: John Hixson Date: Wed, 4 Mar 2020 14:20:47 -0800 Subject: [PATCH] loadbalancer: don't assume IPv4 IP address on load balancer The azure load balancer resource's frontend_ip_configuration argument assumes the IP address is only going to be IPv4. This removes that restriction to be in line with the rest of the terraform code that does not have that validation. https://bugzilla.redhat.com/show_bug.cgi?id=1808973 --- .../internal/services/network/resource_arm_loadbalancer.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/azurerm/internal/services/network/resource_arm_loadbalancer.go b/azurerm/internal/services/network/resource_arm_loadbalancer.go index f6ddeb6fd41f7..a144565418a04 100644 --- a/azurerm/internal/services/network/resource_arm_loadbalancer.go +++ b/azurerm/internal/services/network/resource_arm_loadbalancer.go @@ -81,10 +81,9 @@ func resourceArmLoadBalancer() *schema.Resource { }, "private_ip_address": { - Type: schema.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validate.IPv4AddressOrEmpty, + Type: schema.TypeString, + Optional: true, + Computed: true, }, "private_ip_address_version": {