mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-03 01:01:06 +00:00
Make it allowable to add 'network_interface' as workaround for element function (#2018)
Make it allowable to add 'network_interface', 'boot_disk', 'machine_type' as workaround for element function.
This commit is contained in:
parent
b8cbf46367
commit
bfb1feb4cb
@ -29,7 +29,10 @@ func computeInstanceFromTemplateSchema() map[string]*schema.Schema {
|
||||
s := resourceComputeInstance().Schema
|
||||
|
||||
for _, field := range []string{"boot_disk", "machine_type", "network_interface"} {
|
||||
// The user can set these fields as an override, but doesn't need to -
|
||||
// the template values will be used if they're unset.
|
||||
s[field].Required = false
|
||||
s[field].Optional = true
|
||||
}
|
||||
|
||||
// Remove deprecated/removed fields that are never d.Set. We can't
|
||||
|
Loading…
Reference in New Issue
Block a user