diff --git a/composer.json b/composer.json index cbd9aca..aa56104 100644 --- a/composer.json +++ b/composer.json @@ -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" }, diff --git a/src/Command/Status.php b/src/Command/Status.php index 6d66c96..b1d9d01 100644 --- a/src/Command/Status.php +++ b/src/Command/Status.php @@ -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');