mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Improve error message for controls.windows_enable_and_configure (#21944)
#21402
This commit is contained in:
parent
ca4d45f400
commit
299a9e1008
2 changed files with 2 additions and 1 deletions
1
changes/21402-improve-windows-mdm-enabled-error-message
Normal file
1
changes/21402-improve-windows-mdm-enabled-error-message
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Improve gitops error message about enabling windows MDM
|
||||
|
|
@ -836,7 +836,7 @@ func (svc *Service) validateMDM(
|
|||
len(mdm.WindowsSettings.CustomSettings.Value) > 0 &&
|
||||
!fleet.MDMProfileSpecsMatch(mdm.WindowsSettings.CustomSettings.Value, oldMdm.WindowsSettings.CustomSettings.Value) {
|
||||
invalid.Append("windows_settings.custom_settings",
|
||||
`Couldn’t edit windows_settings.custom_settings. Windows MDM isn’t turned on. Visit https://fleetdm.com/docs/using-fleet to learn how to turn on MDM.`)
|
||||
`Couldn’t edit windows_settings.custom_settings. Windows MDM isn’t turned on. This can be enabled by setting "controls.windows_enabled_and_configured: true" in the default configuration. Visit https://fleetdm.com/guides/windows-mdm-setup and https://fleetdm.com/docs/configuration/yaml-files#controls to learn more about enabling MDM.`)
|
||||
}
|
||||
}
|
||||
checkCustomSettings("windows", mdm.WindowsSettings.CustomSettings.Value)
|
||||
|
|
|
|||
Loading…
Reference in a new issue