diff --git a/es.go b/es.go index d4a39a9..8f4c704 100644 --- a/es.go +++ b/es.go @@ -1187,7 +1187,7 @@ func (c *Client) SnapshotAllIndicesWithBodyParams(repository string, snapshot st return errors.New("no body params provided, please use SnapshotAllIndices Function instead") } - parsedJson, parsingErr := json.Marshal(bodyParams) + parsedJSON, parsingErr := json.Marshal(bodyParams) if parsingErr != nil { return parsingErr @@ -1195,7 +1195,7 @@ func (c *Client) SnapshotAllIndicesWithBodyParams(repository string, snapshot st agent := c.buildPutRequest(fmt.Sprintf("_snapshot/%s/%s", repository, snapshot)). Set("Content-Type", "application/json"). - Send(string(parsedJson)) + Send(string(parsedJSON)) _, err := handleErrWithBytes(agent)