mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
Allow EnrollmentState to be in status '3' for MDM clients (#17868)
#17692 Recently there was a change that filtered out hosts in `EnrollmentState` 3. This change may cause some hosts that are in otherwise good health to appear unresponsive to MDM in the management UI. This change will allow hosts with `EnrollmentStatus` 3 show as enrolled. The root cause of some hosts being in state 3 is still not entirely clear, but may have to do with either trying to re-enroll once already enrolled, or windows updates causing some sort of issue with fleet. Despite the "failed" `EnrollmentState` 3, the host will still display that the system is managed by Fleet, and will actively sync.
This commit is contained in:
parent
0752993c93
commit
0b04e7ea9f
1
changes/17692-enrollment-state-3.md
Normal file
1
changes/17692-enrollment-state-3.md
Normal file
@ -0,0 +1 @@
|
||||
- Fix a bug where valid MDM enrollments would show up as unmanaged (EnrollmentState 3)
|
@ -506,7 +506,7 @@ var extraDetailQueries = map[string]DetailQuery{
|
||||
-- coalesce to 'unknown' and keep that state in the list
|
||||
-- in order to account for hosts that might not have this
|
||||
-- key, and servers
|
||||
WHERE COALESCE(e.state, '0') IN ('0', '1', '2')
|
||||
WHERE COALESCE(e.state, '0') IN ('0', '1', '2', '3')
|
||||
LIMIT 1;
|
||||
`,
|
||||
DirectIngestFunc: directIngestMDMWindows,
|
||||
|
Loading…
Reference in New Issue
Block a user