terraform-provider-artifactory: property_sets can't be removed
Hello,
It seems that this problem is still there.
I migrated my code from 2.25.0 to 6.9.3.
Here is one of the resource where I removed the property_sets.
Before
resource "artifactory_local_generic_repository" "cicd-archive" {
key = "cicd-archive"
description = "CICD archive repository"
repo_layout_ref = "simple-default"
property_sets = [ "artifactory"]
}
After
resource "artifactory_local_generic_repository" "cicd-archive" {
key = "cicd-archive"
description = "CICD archive repository"
repo_layout_ref = "simple-default"
}
Plan + apply.
Plan again and this is the output :
# artifactory_local_generic_repository.cicd-archive will be updated in-place
~ resource "artifactory_local_generic_repository" "cicd-archive" {
id = "cicd-archive"
~ property_sets = [
- "artifactory",
]
# (11 unchanged attributes hidden)
}
The terraform show command still displays it:
~/p/b/ar/terraform-cloud | master *1 !3 ?3 terraform state show artifactory_local_generic_repository.cicd-archive
# artifactory_local_generic_repository.cicd-archive:
resource "artifactory_local_generic_repository" "cicd-archive" {
archive_browsing_enabled = false
blacked_out = false
description = "CICD archive repository"
download_direct = false
id = "cicd-archive"
includes_pattern = "**/*"
key = "cicd-archive"
package_type = "generic"
priority_resolution = false
project_environments = []
property_sets = [
"artifactory",
]
repo_layout_ref = "simple-default"
xray_index = false
But it’s not present in the UI

Regards
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (1 by maintainers)
@alexhung and @danielmkn Sorry for not getting back you all sooner. I have set the value of property_sets to artifactory in all of our local and remote repositories and have moved on from the state drift issue. Also we are no longer on the previous version of the providers.
Our docker remote repository had ignore_changes on username and password. There was recent fix for ignore_changes https://github.com/jfrog/terraform-provider-artifactory/issues/642 So not sure if that was related to problem I was having.
@tbutler-qontigo Thanks. I have looked at it yesterday and you’re right that they are the same issue. I don’t have permission to link those 2 tickets but I’ll post a comment to the internal ticket.
@oallauddin There may be a separate issue here with the provider not populating the state correctly. @danielmkn let’s create a ticket for this to investigate.
@alexhung done, as You requested.