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
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# artifactory_item_properties.test will be created
+ resource "artifactory_item_properties" "test" {
+ is_recursive = false
+ properties = {
+ "key1" = [
+ "value1",
]
}
+ repo_key = "property-test"
}
# artifactory_local_generic_repository.test will be created
+ resource "artifactory_local_generic_repository" "test" {
+ blacked_out = false
+ cdn_redirect = false
+ id = (known after apply)
+ includes_pattern = "**/*"
+ key = "property-test"
+ package_type = (known after apply)
+ priority_resolution = false
+ project_environments = (known after apply)
+ repo_layout_ref = "simple-default"
+ xray_index = false
}
Plan: 2 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
artifactory_local_generic_repository.test: Creating...
artifactory_local_generic_repository.test: Creation complete after 0s [id=property-test]
artifactory_item_properties.test: Creating...
artifactory_item_properties.test: Creation complete after 0s
Delete the artifactory_item_properties resource and apply again:
Apply output
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
- destroy
Terraform will perform the following actions:
# artifactory_item_properties.test will be destroyed
# (because artifactory_item_properties.test is not in configuration)
- resource "artifactory_item_properties" "test" {
- is_recursive = false -> null
- properties = {
- "key1" = [
- "value1",
]
} -> null
- repo_key = "property-test" -> null
}
Plan: 0 to add, 0 to change, 1 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
artifactory_item_properties.test: Destroying...
artifactory_item_properties.test: Destruction complete after 0s
Apply complete! Resources: 0 added, 0 changed, 1 destroyed.
Property has not been deleted from repository. Subsequent terraform plan commands show no changes.
Issue occurs regardless of is_recursive value, and when setting properties on files with item_path.
Artifactory version 7.84.10
Terraform version 1.5.7
Provider version 11.5.0
Requirements for and issue
A description of the bug
A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue). If this is not supplied, this issue will likely be closed without any effort expended.
Your version of artifactory (you can curl it at $host/artifactory/api/system/version
Your version of terraform
Your version of terraform provider
Expected behavior
Repository property is deleted when artifactory_item_properties is deleted.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Deleting an
artifactory_item_properties
resource does not delete the property correctly in Artifactory.Apply output
artifactory_item_properties
resource and apply again:Apply output
terraform plan
commands show no changes.Issue occurs regardless of
is_recursive
value, and when setting properties on files withitem_path
.Requirements for and issue
curl
it at$host/artifactory/api/system/version
Expected behavior
Repository property is deleted when
artifactory_item_properties
is deleted.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: