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
After applying successfully the whole plan, performing again terraform plan updates policies and configuration profiles despite the fact they are not modified.
Expected behavior
Without any changes, terraform plan should display: Plan: 0 to add, 0 to change, 0 to destroy.
Actual behavior
Without any changes, terraform plan actually display: Plan: 0 to add, 33 to change, 0 to destroy.
33 is the number of policies and configuration profiles.
The side effect is that when I perform a terraform apply the policies and the profiles are redeployed. Below the creation and the unwanted update (see capture #1).
It’s problematic for profiles because as you can see they are redeployed to devices, which obviously is not a good idea (see capture #2).
Possible explanation
?
Possible fix
?
The text was updated successfully, but these errors were encountered:
After you ran apply for this plan, the next plan was identical - is this correct, @ecanault?
Presently, I can't reproduce such an issue. I'll need more details. Can you still reproduce? If so, could you please share the relevant .tf config & the output of TF_LOG=DEBUG terraform {plan,apply} ...? Also - some questions:
Is there any chance the change to general.trigger (CHECKIN -> EVENT) in the example was genuine? (And/or the other changes, listed below.)
By what mechanism would updating this policy cause a profile to be redeployed (and could that mechanism be correctly triggered immediately by the policy's new EVENT trigger)?
(If any one property of a top level schema attributes (general, self_serviceuser_interaction) changes, the entire attribute block is replaced in the plan.)
Ah! I was able to reproduce (maybe) this, @ecanault :) No need for the additional logs/above questions. As an immediate workaround, try setting self_service.self_service_icon.id to a number > 0 on impacted policies.
The bug I found occurs when trying to change self_service.self_service_icon.id to 0 on an existing policy. Only on newly created policies does a 0 icon id work properly* (by creating a policy without any icon).
*But that's not really proper. A reasonable user might expect 0 to be a reference to a valid icon ID, the first in the index (I did). And the Jamf API simply returns an empty icon property when none is set. This is certainly a bug, though the workaround isn't difficult. Will address, but can't take priority atm.
Description
After applying successfully the whole plan, performing again
terraform plan
updates policies and configuration profiles despite the fact they are not modified.Expected behavior
Without any changes,
terraform plan
should display: Plan: 0 to add, 0 to change, 0 to destroy.Actual behavior
Without any changes, terraform plan actually display: Plan: 0 to add, 33 to change, 0 to destroy.
33 is the number of policies and configuration profiles.
Here is an output for a policy for example:
The side effect is that when I perform a terraform apply the policies and the profiles are redeployed. Below the creation and the unwanted update (see capture #1).
It’s problematic for profiles because as you can see they are redeployed to devices, which obviously is not a good idea (see capture #2).
Possible explanation
?
Possible fix
?
The text was updated successfully, but these errors were encountered: