Attempt 2 at returning a serializable config (#1819)

This commit is contained in:
Mike Arpaia 2018-06-11 11:34:05 -06:00 committed by GitHub
parent f8796bc55b
commit c91a031d3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}