-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Operations - Terraform Provider
-
None
-
1
-
Severity 2 - Major
-
2
Issue Summary
The alert policy resource in our Terraform provider checks if the team_id is null or unknown, but the value returned from the API is an empty string.
Relevant line of code:
The Opsgenie provider checks for an empty string:
Steps to Reproduce
- Create a terraform provider with alert policy resources with no teams
- Apply the policy
Expected Results
If this matches the existing policies, it shouldn't replace them.
Actual Results
The policies are replaced when running the terraform apply
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available