Skip to content

Commit 32af63a

Browse files
authored
fixed a typo in the error messages (elastic#962)
1 parent eeb7cb6 commit 32af63a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

internal/clients/kibana/alerting.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func CreateAlertingRule(ctx context.Context, apiClient ApiClient, rule models.Al
202202

203203
defer res.Body.Close()
204204

205-
diags := utils.CheckHttpError(res, "Unabled to create alerting rule")
205+
diags := utils.CheckHttpError(res, "Unable to create alerting rule")
206206
if diags.HasError() {
207207
return nil, diags
208208
}
@@ -318,7 +318,7 @@ func GetAlertingRule(ctx context.Context, apiClient *clients.ApiClient, id, spac
318318
if res.StatusCode == http.StatusNotFound {
319319
return nil, nil
320320
}
321-
return ruleResponseToModel(spaceID, ruleRes), utils.CheckHttpError(res, "Unabled to get alerting rule")
321+
return ruleResponseToModel(spaceID, ruleRes), utils.CheckHttpError(res, "Unable to get alerting rule")
322322
}
323323

324324
func DeleteAlertingRule(ctx context.Context, apiClient *clients.ApiClient, ruleId string, spaceId string) diag.Diagnostics {
@@ -335,5 +335,5 @@ func DeleteAlertingRule(ctx context.Context, apiClient *clients.ApiClient, ruleI
335335
}
336336

337337
defer res.Body.Close()
338-
return utils.CheckHttpError(res, "Unabled to delete alerting rule")
338+
return utils.CheckHttpError(res, "Unable to delete alerting rule")
339339
}

internal/clients/kibana/slo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func DeleteSlo(ctx context.Context, apiClient *clients.ApiClient, sloId string,
5050
}
5151

5252
defer res.Body.Close()
53-
return utils.CheckHttpError(res, "Unabled to delete slo with ID "+string(sloId))
53+
return utils.CheckHttpError(res, "Unable to delete slo with ID "+string(sloId))
5454
}
5555

5656
func UpdateSlo(ctx context.Context, apiClient *clients.ApiClient, s models.Slo, supportsGroupByList bool) (*models.Slo, diag.Diagnostics) {

internal/elasticsearch/security/api_key/acc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ func checkResourceSecurityApiKeyDestroy(s *terraform.State) error {
441441

442442
apiKey, diags := elasticsearch.GetApiKey(client, compId.ResourceId)
443443
if diags.HasError() {
444-
return fmt.Errorf("Unabled to get API key %v", diags)
444+
return fmt.Errorf("Unable to get API key %v", diags)
445445
}
446446

447447
if !apiKey.Invalidated {

0 commit comments

Comments
 (0)