Skip to content

Commit

Permalink
compatibility with node pools
Browse files Browse the repository at this point in the history
  • Loading branch information
limenet committed Apr 30, 2024
1 parent 3520acf commit d64f6c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ext-json": "*",
"pimcore/pimcore": "^11.0",
"psr/log": "^3.0",
"ruflin/elastica": "8.x-dev#78d5a9e",
"ruflin/elastica": "8.x-dev#088b5098443541f00c5205556a26c4c815219d07",
"symfony/console": "^6.2",
"symfony/lock": "^6.2"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Command/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$table
->setHeaders(['Host', 'Port', 'Version'])
->setRows([[
$this->esClient->getConfig('host'),
$this->esClient->getConfig('port'),
$this->esClient->getTransport()->getNodePool()->nextNode()->getUri()->getHost(),
$this->esClient->getTransport()->getNodePool()->nextNode()->getUri()->getPort(),
$this->esClient->getVersion(),
]])
->setHeaderTitle('Cluster');
Expand Down

0 comments on commit d64f6c1

Please sign in to comment.