Skip to content

Commit 4e76edf

Browse files
Merge pull request #193 from magento-commerce/MCLOUD-13710
MCLOUD-13710: OS2 fix for >=2.4.4-p14 <2.4.5
2 parents 22d3ee3 + 3dde92f commit 4e76edf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Service/OpenSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
*/
5252
public function getFullEngineName(): string
5353
{
54-
if ($this->magentoVersion->satisfies('2.4.4-p13 || >=2.4.5-p12')) {
54+
if ($this->magentoVersion->satisfies('>=2.4.4-p13 <2.4.5 || >=2.4.5-p12')) {
5555
return static::ENGINE_NAME;
5656
}
5757

src/Service/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Validator
9999
ServiceInterface::NAME_OPENSEARCH => [
100100
'>=2.3.7-p3 <2.4.0 || >=2.4.3-p2 <2.4.4-p7 || >=2.4.5 <2.4.5-p7' => '~1.1.0 || 1.2.*',
101101
'>=2.4.4-p8 <2.4.4-p12 || >=2.4.5-p6 <2.4.5-p11' => '1.3.*',
102-
'2.4.4-p13 || >=2.4.5-p12' => '^2'
102+
'>=2.4.4-p13 <2.4.5 || >=2.4.5-p12' => '^2'
103103
],
104104
ServiceInterface::NAME_RABBITMQ => [
105105
'<2.3.0' => '~3.5.0',

src/Step/Deploy/InstallUpdate/Install/Setup/InstallCommandFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private function getEsOptions(): array
268268
$configuration = $this->openSearch->getConfiguration();
269269
$isAuthEnabled = $this->openSearch->isAuthEnabled();
270270

271-
if ($this->magentoVersion->satisfies('2.4.4-p13 || >=2.4.5-p12')) {
271+
if ($this->magentoVersion->satisfies('>=2.4.4-p13 <2.4.5 || >=2.4.5-p12')) {
272272
$enginePrefixName = 'opensearch';
273273
}
274274
} else {

0 commit comments

Comments
 (0)