Skip to content

Commit

Permalink
fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Nov 1, 2024
1 parent 039e58c commit c080210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kibana/fleet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c080210

Please sign in to comment.