Open thisisnotgroiss opened 1 year ago
Hi @thisisnotgroiss! Thanks for the issue! 👀
I can reproduce this issue in acceptance tests run against a Jamf Pro instance. It's also an issue (sometimes?) with jamf_policy
and jamf_computerExtensionAttribute
resources.
The root cause appears to be that Jamf's API is too slow:
Immediately after the remote state is updated, the provider reads it (as expected). However, Jamf's API (using the objects' respective classic endpoints) returns 404 resource not found. I added a hacky retry-on-404 (delta here) & the issue went away 🪄.
Open to suggestions for a proper fix. Ideas:
jamf.Client
?I'm also running into this quite consistently with extension_attributes. The pass-acc-tests
branch with the hacky retry-on-404 never made it upstream? If one retries terraform apply
often enough, it will eventually pass ...
Hi,
it seems like the provider has issues with the state of smart computer groups. the resource gets created in jamf, but TF seems to lose track of it.