Skip to content

Commit

Permalink
fix host details panic
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikelee committed Nov 15, 2024
1 parent 18be896 commit d3ace4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/service/hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -1173,9 +1173,10 @@ func (svc *Service) getHostDetails(ctx context.Context, host *fleet.Host, opts f
return nil, ctxerr.Wrap(ctx, err, "get app config for host mdm details")
}

host.MDM.OSSettings = &fleet.HostMDMOSSettings{}

var profiles []fleet.HostMDMProfile
if ac.MDM.EnabledAndConfigured || ac.MDM.WindowsEnabledAndConfigured {
host.MDM.OSSettings = &fleet.HostMDMOSSettings{}
switch host.Platform {
case "windows":
if !ac.MDM.WindowsEnabledAndConfigured {
Expand Down

0 comments on commit d3ace4d

Please sign in to comment.