mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 04:54:18 +02:00
fix index response, fix linter issues
This commit is contained in:
@@ -101,11 +101,10 @@ func IlmForecastList(conf *cfg.Config) error {
|
||||
table.AddRow(
|
||||
phase.index,
|
||||
humanize.Bytes(uint64(phase.size)),
|
||||
fmt.Sprintf("%s", phase.age),
|
||||
phase.age.String(),
|
||||
virtualAge.String(),
|
||||
|
||||
fmt.Sprintf("%s", virtualAge),
|
||||
|
||||
fmt.Sprintf("%s", phase.minage),
|
||||
phase.minage.String(),
|
||||
humanize.Bytes(uint64(phase.minsize)),
|
||||
|
||||
phase.currentPhase,
|
||||
@@ -189,7 +188,7 @@ func getIlmPhaseData(conf *cfg.Config) ([]PhaseData, error) {
|
||||
case ResponseExplain:
|
||||
ilmdetails = r.explainlifecycle
|
||||
case ResponseIndices:
|
||||
indicesres = r.indices
|
||||
indicesres = r.indicesbytes
|
||||
case ResponseLifecycle:
|
||||
ilmpolicies = *r.lifecycle
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ func getApiData(es *elasticsearch.TypedClient, wg *sync.WaitGroup,
|
||||
Bytes(bytes.Bytes{Name: "b"}).
|
||||
Do(context.Background())
|
||||
|
||||
ar.indices = &res
|
||||
ar.indicesbytes = &res
|
||||
ar.which = ResponseIndices
|
||||
arerr = err
|
||||
|
||||
|
||||
Reference in New Issue
Block a user