Skip to content

Commit

Permalink
update remediation measures format
Browse files Browse the repository at this point in the history
  • Loading branch information
imjaroiswebdev committed May 3, 2024
1 parent 544c321 commit 147daa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pagerduty/resource_pagerduty_team_membership.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,15 @@ func resourcePagerDutyTeamMembershipDelete(d *schema.ResourceData, meta interfac
var formatEPsList = func(eps []string) string {
var formated []string
for _, ep := range eps {
formated = append(formated, fmt.Sprintf("* %s", ep))
formated = append(formated, fmt.Sprintf("\t* %s", ep))
}
return strings.Join(formated, "\n")
}

return fmt.Errorf(`User %[1]q can't be removed from Team %[2]q as they belong to an Escalation Policy on this team.
Please take only one of the following remediation measures in order to unblock the Team Membership removal:
1. Remove the user from the following Escalation Policies:
%[4]s
%[4]s
2. Remove the Escalation Policies from the Team https://%[3]s.pagerduty.com/teams/%[2]s
After completing one of the above given remediation options come back to continue with the destruction of Team Membership.`,
Expand Down

0 comments on commit 147daa9

Please sign in to comment.