Skip to content

Commit

Permalink
access_group: fix attribute mapping
Browse files Browse the repository at this point in the history
With the fixes and refactor in v2.18.0, I copied and pasted the wrong
attribute for the GSuite configuration, resulting in a crash. This
updates the attribute being accessed to be the correct one and prevents
the crash.

Fixes #935
  • Loading branch information
jacobbednarz committed Feb 7, 2021
1 parent de77078 commit 3d16cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudflare/resource_cloudflare_access_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ func TransformAccessGroupForSchema(accessGroup []interface{}) []map[string]inter
case "gsuite":
gsuiteCfg := groupValue.(map[string]interface{})
gsuiteID = gsuiteCfg["identity_provider_id"].(string)
gsuiteEmails = append(gsuiteEmails, gsuiteCfg["name"].(string))
gsuiteEmails = append(gsuiteEmails, gsuiteCfg["email"].(string))
case "github-organization":
githubCfg := groupValue.(map[string]interface{})
githubID = githubCfg["identity_provider_id"].(string)
Expand Down

0 comments on commit 3d16cf0

Please sign in to comment.