Skip to content

Commit

Permalink
add two fields to ForceSendFields (GoogleCloudPlatform#4580)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmedia authored and ericyz committed Mar 11, 2021
1 parent 9975c35 commit 65dfba4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func expandNetworkPeering(d *schema.ResourceData) *compute.NetworkPeering {
ImportCustomRoutes: d.Get("import_custom_routes").(bool),
ExportSubnetRoutesWithPublicIp: d.Get("export_subnet_routes_with_public_ip").(bool),
ImportSubnetRoutesWithPublicIp: d.Get("import_subnet_routes_with_public_ip").(bool),
ForceSendFields: []string{"ExportSubnetRoutesWithPublicIp"},
ForceSendFields: []string{"ExportSubnetRoutesWithPublicIp", "ImportCustomRoutes", "ExportCustomRoutes"},
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ func TestAccComputeNetworkPeering_customRoutesUpdate(t *testing.T) {
ImportStateVerify: true,
ImportStateId: importId,
},
{
Config: testAccComputeNetworkPeeringDefaultCustomRoutes(primaryNetworkName, peeringName, suffix),
},
{
ResourceName: "google_compute_network_peering.bar",
ImportState: true,
ImportStateVerify: true,
ImportStateId: importId,
},
},
})
}
Expand Down
2 changes: 1 addition & 1 deletion mmv1/third_party/validator/bigtable_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func GetBigtableClusterCaiObject(d TerraformResourceData, config *Config) ([]Ass

assets := []Asset{}
for _, obj := range objs {
name, err := assetName(d, config, "//bigtable.googleapis.com/projects/{{.Provider.project}}/instances/{{name}}/clusters/{{cluster_id}}")
name, err := assetName(d, config, "//bigtable.googleapis.com/projects/{{project}}/instances/{{name}}/clusters/{{cluster_id}}")
if err != nil {
return []Asset{}, err
}
Expand Down

0 comments on commit 65dfba4

Please sign in to comment.