From c91a031d3e010b92c9e25a0205be2b873ed13320 Mon Sep 17 00:00:00 2001 From: Mike Arpaia Date: Mon, 11 Jun 2018 11:34:05 -0600 Subject: [PATCH] Attempt 2 at returning a serializable config (#1819) --- server/service/endpoint_osquery.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/service/endpoint_osquery.go b/server/service/endpoint_osquery.go index d8cc9ddbf9..c73bb29fea 100644 --- a/server/service/endpoint_osquery.go +++ b/server/service/endpoint_osquery.go @@ -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 } }