mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-25 16:06:25 -06:00
Merge pull request #3242 from lwander/b-gce-network-interface-name
provider/gce: Instance Template Network Interface Should be URL
This commit is contained in:
commit
2619b66e21
@ -304,11 +304,9 @@ func buildNetworks(d *schema.ResourceData, meta interface{}) (error, []*compute.
|
||||
for i := 0; i < networksCount; i++ {
|
||||
prefix := fmt.Sprintf("network_interface.%d", i)
|
||||
|
||||
source := "global/networks/default"
|
||||
source := "global/networks/"
|
||||
if v, ok := d.GetOk(prefix + ".network"); ok {
|
||||
if v.(string) != "default" {
|
||||
source = v.(string)
|
||||
}
|
||||
source += v.(string)
|
||||
}
|
||||
|
||||
// Build the networkInterface
|
||||
|
Loading…
Reference in New Issue
Block a user