Skip to content

Commit dd9dcee

Browse files
committed
Fix missing reference
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent 28b45a8 commit dd9dcee

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

github/resource_github_team_settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func resourceGithubTeamSettingsUpdate(ctx context.Context, d *schema.ResourceDat
260260
Enabled: githubv4.Boolean(true),
261261
Algorithm: &teamReviewAlgorithm,
262262
TeamMemberCount: new(githubv4.Int(settings["member_count"].(int))),
263-
NotifyTeam: new(githubv4.Boolean(settings["notify"].(bool))),
263+
NotifyTeam: new(githubv4.Boolean(notify)),
264264
}
265265
err := graphql.Mutate(ctx, &mutation, updateTeamReviewAssignmentInput, nil)
266266
if err != nil {

github/resource_github_team_settings_test.go

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -390,18 +390,10 @@ func TestAccGithubTeamSettings(t *testing.T) {
390390
{
391391
Config: config,
392392
ConfigStateChecks: []statecheck.StateCheck{
393-
statecheck.ExpectKnownValue("github_team_settings.test",
394-
tfjsonpath.New("review_request_delegation").AtSliceIndex(0).AtMapKey("algorithm"),
395-
knownvalue.StringExact("ROUND_ROBIN")),
396-
statecheck.ExpectKnownValue("github_team_settings.test",
397-
tfjsonpath.New("review_request_delegation").AtSliceIndex(0).AtMapKey("member_count"),
398-
knownvalue.Int64Exact(2)),
399-
statecheck.ExpectKnownValue("github_team_settings.test",
400-
tfjsonpath.New("review_request_delegation").AtSliceIndex(0).AtMapKey("notify"),
401-
knownvalue.Bool(false)),
402-
statecheck.ExpectKnownValue("github_team_settings.test",
403-
tfjsonpath.New("notify"),
404-
knownvalue.Bool(true)),
393+
statecheck.ExpectKnownValue("github_team_settings.test", tfjsonpath.New("review_request_delegation").AtSliceIndex(0).AtMapKey("algorithm"), knownvalue.StringExact("ROUND_ROBIN")),
394+
statecheck.ExpectKnownValue("github_team_settings.test", tfjsonpath.New("review_request_delegation").AtSliceIndex(0).AtMapKey("member_count"), knownvalue.Int64Exact(2)),
395+
statecheck.ExpectKnownValue("github_team_settings.test", tfjsonpath.New("review_request_delegation").AtSliceIndex(0).AtMapKey("notify"), knownvalue.Bool(false)),
396+
statecheck.ExpectKnownValue("github_team_settings.test", tfjsonpath.New("notify"), knownvalue.Bool(true)),
405397
},
406398
},
407399
{

0 commit comments

Comments
 (0)