Remove validation in compute_instance expanders (#3236)

<!-- This change is generated by MagicModules. -->
/cc @chrisst
This commit is contained in:
The Magician 2019-03-13 15:29:56 -07:00 committed by Chris Stephens
parent 9c7a12d52a
commit f5af84619c

View File

@ -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")
}