mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -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++ {
|
for i := 0; i < networksCount; i++ {
|
||||||
prefix := fmt.Sprintf("network_interface.%d", 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, ok := d.GetOk(prefix + ".network"); ok {
|
||||||
if v.(string) != "default" {
|
source += v.(string)
|
||||||
source = v.(string)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build the networkInterface
|
// Build the networkInterface
|
||||||
|
Loading…
Reference in New Issue
Block a user