Skip to content

Commit

Permalink
fix(collector): resolved elasticsearch legacy error
Browse files Browse the repository at this point in the history
- Cannot read property 'master' of undefined"
  • Loading branch information
kirrg001 committed Dec 12, 2022
1 parent e431dde commit ea4f59f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ function instrument(es) {

return client;
};

Object.keys(OriginalClient).forEach(key => {
es.Client[key] = OriginalClient[key];
});
}

function gatherClusterInfo(client, clusterInfo) {
Expand Down

0 comments on commit ea4f59f

Please sign in to comment.