Skip to content

Commit bdc5592

Browse files
authored
fix: Add FlushSoftwareUpdatePlans to jamfproapi_enrollment_settings.go
This should ensure proper state detection of `flush_software_update_plans` and stop the `jamfpro_user_initiated_enrollment_settings` resource trying to update on every run despite already being set to `true`. Otherwise we see the following on every `terraform plan` or `terraform apply` run. ``` # module.settings-userinitiatedenrollment.jamfpro_user_initiated_enrollment_settings.user_initiated_enrollment_settings will be updated in-place ~ resource "jamfpro_user_initiated_enrollment_settings" "user_initiated_enrollment_settings" { ~ flush_software_update_plans = false -> true id = "jamfpro_user_initiated_enrollment_settings_singleton" # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } ```
1 parent 6b91d0f commit bdc5592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/jamfpro/jamfproapi_enrollment_settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type EnrollmentSubsetCertificateSettings struct {
2828
FlushLocationHistoryInformation bool `json:"flushLocationHistoryInformation"`
2929
FlushPolicyHistory bool `json:"flushPolicyHistory"`
3030
FlushExtensionAttributes bool `json:"flushExtensionAttributes"`
31+
FlushSoftwareUpdatePlans bool `json:"flushSoftwareUpdatePlans"`
3132
FlushMdmCommandsOnReenroll string `json:"flushMdmCommandsOnReenroll"`
3233
MacOsEnterpriseEnrollmentEnabled bool `json:"macOsEnterpriseEnrollmentEnabled"`
3334
ManagementUsername string `json:"managementUsername"`

0 commit comments

Comments
 (0)