Describe the bug
After a provider upgrade from 2.10.0 to 3.0.6 we started getting unwanted changes when planning xray_security_policy resources even if they have not changed.
Terraform configuration:
resource abc = {
name = "name"
rules = [
{
name = "name"
priority = 1
criteria = {
min_severity = "High"
fix_version_dependant = false
}
actions = {
fail_build = true
block_download = {
active = false
unscanned = false
}
}
}
]
}
Terraform Plan Output:
# module.xray_security_policy[“(name)”].xray_security_policy.policy will be updated in-place
~ resource "xray_security_policy" "policy" {
~ author = “xyz” -> (known after apply)
~ created = "(date_time)" -> (known after apply)
~ id = "(id)" -> (known after apply)
~ modified = "(date_time)" -> (known after apply)
name = "(name)"
# (2 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# module.xray_security_policy[“(name)”].xray_security_policy.policy will be updated in-place
~ resource "xray_security_policy" "policy" {
~ author = “xyz” -> (known after apply)
~ created = "(date_time)" -> (known after apply)
~ id = “(id)” -> (known after apply)
~ modified = "(date_time)" -> (known after apply)
name = "(name)"
# (2 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Requirements for and issue
Artifactory: 12.4.0
Xray: 3.0.6
Expected behavior
No changes expected in plan since nothing has changed in the resource.
Additional context
Add any other context about the problem here.
Describe the bug
After a provider upgrade from 2.10.0 to 3.0.6 we started getting unwanted changes when planning xray_security_policy resources even if they have not changed.
Terraform configuration:
Terraform Plan Output:
Requirements for and issue
curlArtifactory version at$host/artifactory/api/system/versionand Xray version at$host/xray/api/v1/system/versionv1.10.5Expected behavior
No changes expected in plan since nothing has changed in the resource.
Additional context
Add any other context about the problem here.