-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
- A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue)
- Your version of Artifactory and Xray (you can
curl
Artifactory version at$host/artifactory/api/system/version
and Xray version at
$host/xray/api/v1/system/version
Artifactory: 12.4.0
Xray: 3.0.6
- Your version of terraform
v1.10.5
Expected behavior
No changes expected in plan since nothing has changed in the resource.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working