mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Attempt 2 at returning a serializable config (#1819)
This commit is contained in:
parent
f8796bc55b
commit
c91a031d3e
1 changed files with 4 additions and 1 deletions
|
|
@ -56,7 +56,10 @@ func makeGetClientConfigEndpoint(svc kolide.Service) endpoint.Endpoint {
|
|||
if err != nil {
|
||||
return getClientConfigResponse{Err: err}, nil
|
||||
}
|
||||
return getClientConfigResponse{Config: config}, nil
|
||||
|
||||
// We return the config here explicitly because osquery exepects the
|
||||
// response for configs to be at the top-level of the JSON response
|
||||
return config, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue