From c0802101032c5fa435717bcd036b981ba389688a Mon Sep 17 00:00:00 2001 From: Anderson Queiroz Date: Fri, 1 Nov 2024 14:05:35 +0100 Subject: [PATCH] fix var name --- kibana/fleet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibana/fleet.go b/kibana/fleet.go index e482035..d1c299d 100644 --- a/kibana/fleet.go +++ b/kibana/fleet.go @@ -520,7 +520,7 @@ func (client *Client) CreateFleetServerHosts(ctx context.Context, req ListFleetS } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - return FleetServerHostsResponse{}, fmt.Errorf("error creating fleet-server host: unexpected status code: %s", r.Status) + return FleetServerHostsResponse{}, fmt.Errorf("error creating fleet-server host: unexpected status code: %s", resp.Status) } body, err := io.ReadAll(resp.Body)