Skip to content

Commit

Permalink
Adjust GKEHub prefix for expand (#5078) (#9802)
Browse files Browse the repository at this point in the history
Co-authored-by: upodroid <[email protected]>
Signed-off-by: Modular Magician <[email protected]>

Co-authored-by: upodroid <[email protected]>
  • Loading branch information
modular-magician and upodroid authored Aug 13, 2021
1 parent cf38ea8 commit f1d4c77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/5078.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
2 changes: 1 addition & 1 deletion google/resource_gke_hub_membership.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ func expandGKEHubMembershipEndpointGkeCluster(v interface{}, d TerraformResource
}

func expandGKEHubMembershipEndpointGkeClusterResourceLink(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
if strings.HasPrefix(v.(string), "//container.googleapis.com/") {
if strings.HasPrefix(v.(string), "//") {
return v, nil
} else {
v = "//container.googleapis.com/" + v.(string)
Expand Down

0 comments on commit f1d4c77

Please sign in to comment.