mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-01 15:52:39 +00:00
Remove validation in compute_instance expanders (#3236)
<!-- This change is generated by MagicModules. --> /cc @chrisst
This commit is contained in:
parent
9c7a12d52a
commit
f5af84619c
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user