Skip to content

Commit

Permalink
fix: use count instead of for_each for responder_user_ids in pagerdut…
Browse files Browse the repository at this point in the history
…y_team_membership( DEC-2926 ) (#28)
  • Loading branch information
onkarbanerjee authored Mar 20, 2023
1 parent 248c646 commit 3e2d9e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/semantic-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Semantic Pull Request"
name: "honest-public-semantic-pull-request-workflow"

on:
pull_request:
Expand All @@ -10,8 +10,8 @@ on:
permissions: read-all

jobs:
main:
name: Semantic Pull Request
semantic-pull-request:
name: semantic-pull-request
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
Expand Down
4 changes: 2 additions & 2 deletions modules/pagerduty-team/membership.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ locals {
}

resource "pagerduty_team_membership" "responders" {
for_each = toset(var.responder_user_ids)
count = length(var.responder_user_ids)

user_id = each.key
user_id = var.responder_user_ids[count.index]
team_id = pagerduty_team.team.id
role = local.CONST_RESPONDER_ROLE
}
Expand Down

0 comments on commit 3e2d9e0

Please sign in to comment.