Skip to content

Commit

Permalink
Fixed resourceGoogleComputeRegionBackendServiceBackendHash to use rel…
Browse files Browse the repository at this point in the history
…ative path
  • Loading branch information
tmshn committed May 15, 2018
1 parent 612be33 commit 2aa037b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/resource_compute_region_backend_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ func resourceGoogleComputeRegionBackendServiceBackendHash(v interface{}) int {
var buf bytes.Buffer
m := v.(map[string]interface{})

buf.WriteString(fmt.Sprintf("%s-", m["group"].(string)))
group, _ := getRelativePath(m["group"].(string))
buf.WriteString(fmt.Sprintf("%s-", group))

if v, ok := m["description"]; ok {
buf.WriteString(fmt.Sprintf("%s-", v.(string)))
Expand Down

0 comments on commit 2aa037b

Please sign in to comment.