You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Schedule is updated first and user is deleted successfully.
Actual Behavior
Apply tries to delete the user first even though it has references.
pagerduty_user.test_user: Destroying... [id=P2FUWI1]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 10s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 20s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 30s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 40s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 50s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 1m0s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 1m10s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 1m20s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 1m30s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 1m40s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 1m50s elapsed]
pagerduty_user.test_user: Still destroying... [id=P2FUWI1, 2m0s elapsed]
╷
│ Error: DELETE API call to https://api.pagerduty.com/users/P2FUWI1 failed 400 Bad Request. Code: 0, Errors: [The user cannot be deleted as they have 1 schedule. Please remove the user from the following schedule to continue.], Message:
│
│
╵
Steps to Reproduce
Delete the user and change the schedule to include some other user
terraform apply
The text was updated successfully, but these errors were encountered:
Terraform Version
1.7.4
Provider Version
3.9.0
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
Schedule is updated first and user is deleted successfully.
Actual Behavior
Apply tries to delete the user first even though it has references.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: