From ac323401b26be36b73e3bb2903193083526d1010 Mon Sep 17 00:00:00 2001 From: kt Date: Sat, 8 Sep 2018 09:33:07 -0700 Subject: [PATCH] Minor fix to virtual network gateway validation --- azurestack/resource_arm_virtual_network_gateway.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azurestack/resource_arm_virtual_network_gateway.go b/azurestack/resource_arm_virtual_network_gateway.go index 00d315dcb..9eb092193 100644 --- a/azurestack/resource_arm_virtual_network_gateway.go +++ b/azurestack/resource_arm_virtual_network_gateway.go @@ -121,7 +121,7 @@ func resourceArmVirtualNetworkGateway() *schema.Resource { "public_ip_address_id": { Type: schema.TypeString, Optional: true, - ValidateFunc: azure.ValidateResourceId, + ValidateFunc: azure.ValidateResourceIDOrEmpty, }, }, }, @@ -262,7 +262,7 @@ func resourceArmVirtualNetworkGateway() *schema.Resource { "default_local_network_gateway_id": { Type: schema.TypeString, Optional: true, - ValidateFunc: azure.ValidateResourceId, + ValidateFunc: azure.ValidateResourceIDOrEmpty, }, "tags": tagsSchema(),