Skip to content

Commit 18e6155

Browse files
xunleiiolksdr
andauthored
Update internal/clients/index.go
Co-authored-by: Oleksandr <[email protected]>
1 parent 84e7ecf commit 18e6155

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/clients/index.go

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ func (a *ApiClient) GetElasticsearchComponentTemplate(templateName string) (*mod
106106
return nil, diag.FromErr(err)
107107
}
108108
defer res.Body.Close()
109+
if res.StatusCode == http.StatusNotFound {
110+
return nil, nil
111+
}
109112
if diags := utils.CheckError(res, "Unable to request index template."); diags.HasError() {
110113
return nil, diags
111114
}

0 commit comments

Comments
 (0)