mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 23:34:18 +02:00
Compare commits
1 Commits
fix/lintma
...
d69984b01f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d69984b01f |
@@ -62,7 +62,6 @@ func filterIndices(conf *cfg.Config, list indices.Response) indices.Response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return mapmap.NewSlicer(list).MapSliceValuesImmutable(func(index types.IndicesRecord) bool {
|
return mapmap.NewSlicer(list).MapSliceValuesImmutable(func(index types.IndicesRecord) bool {
|
||||||
fmt.Println(*index.Index)
|
|
||||||
if strings.HasPrefix(*index.Index, ".ds-") {
|
if strings.HasPrefix(*index.Index, ".ds-") {
|
||||||
// ignore data stream backing indicies
|
// ignore data stream backing indicies
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -95,9 +95,7 @@ func filterIndexTemplates(conf *cfg.Config, nameFilter string,
|
|||||||
|
|
||||||
if len(conf.Filter) > 0 {
|
if len(conf.Filter) > 0 {
|
||||||
if !mapmap.NewSlicer(tpl.IndexTemplate.IndexPatterns).
|
if !mapmap.NewSlicer(tpl.IndexTemplate.IndexPatterns).
|
||||||
FindSliceInSlice(conf.Filter, func(val, find string) bool {
|
FindSliceInSlice(conf.Filter, strings.Contains) {
|
||||||
return strings.Contains(val, find)
|
|
||||||
}) {
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user