From f5af84619cf1e0ccfac093e89b26adbb22851a63 Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 13 Mar 2019 15:29:56 -0700 Subject: [PATCH] Remove validation in compute_instance expanders (#3236) /cc @chrisst --- google/compute_instance_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/compute_instance_helpers.go b/google/compute_instance_helpers.go index 615a3a78..a1b8e0e3 100644 --- a/google/compute_instance_helpers.go +++ b/google/compute_instance_helpers.go @@ -122,7 +122,7 @@ func expandNetworkInterfaces(d TerraformResourceData, config *Config) ([]*comput network := data["network"].(string) subnetwork := data["subnetwork"].(string) - if (network == "" && subnetwork == "") || (network != "" && subnetwork != "") { + if network == "" && subnetwork == "" { return nil, fmt.Errorf("exactly one of network or subnetwork must be provided") }