mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
We should not be constructing a temporary Environment object in production code. This currently isn't causing any problems, but it might in the future if elastic/elasticsearch#27144 or something similar is ever merged. Instead the master Environment of the node should always be used. Original commit: elastic/x-pack-elasticsearch@6276a54a45