Skip to content

Commit

Permalink
Remove validation in compute_instance expanders (#3236)
Browse files Browse the repository at this point in the history
<!-- This change is generated by MagicModules. -->
/cc @chrisst
  • Loading branch information
modular-magician authored and chrisst committed Mar 13, 2019
1 parent 9c7a12d commit f5af846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/compute_instance_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit f5af846

Please sign in to comment.