mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
Check provider level zone as well when parsing zonal values. (#1455)
This commit is contained in:
parent
11c8a52d35
commit
04a475d73d
@ -188,7 +188,10 @@ func parseZonalFieldValue(resourceType, fieldValue, projectSchemaField, zoneSche
|
||||
|
||||
zone, ok := d.GetOk(zoneSchemaField)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("A zone must be specified")
|
||||
zone = config.Zone
|
||||
if zone == "" {
|
||||
return nil, fmt.Errorf("A zone must be specified")
|
||||
}
|
||||
}
|
||||
|
||||
return &ZonalFieldValue{
|
||||
|
Loading…
Reference in New Issue
Block a user