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:
Dave Cunningham 2015-09-25 16:40:16 -04:00
commit 2619b66e21

View File

@ -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