Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 9f38d0b

Browse files
committed
fix: delete log was not reading proper status
1 parent c4704f6 commit 9f38d0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/elasticsearch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func deleteIndex(ctx context.Context, stackName string, index string) error {
4646
}
4747
log.WithFields(log.Fields{
4848
"indexName": index,
49-
"status": res.Status,
49+
"status": res.Status(),
5050
}).Debug("Index deleted using Elasticsearch Go client")
5151

5252
res, err = esClient.Indices.DeleteAlias([]string{index}, []string{index})
@@ -60,7 +60,7 @@ func deleteIndex(ctx context.Context, stackName string, index string) error {
6060
}
6161
log.WithFields(log.Fields{
6262
"indexAlias": index,
63-
"status": res.Status,
63+
"status": res.Status(),
6464
}).Debug("Index Alias deleted using Elasticsearch Go client")
6565

6666
return nil

0 commit comments

Comments
 (0)