diff --git a/setup/src/Magento/Setup/Console/Command/MaintenanceAllowIpsCommand.php b/setup/src/Magento/Setup/Console/Command/MaintenanceAllowIpsCommand.php
index 3df2825dfec1d..5445bca8713e5 100644
--- a/setup/src/Magento/Setup/Console/Command/MaintenanceAllowIpsCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/MaintenanceAllowIpsCommand.php
@@ -93,7 +93,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (!empty($addresses)) {
$this->maintenanceMode->setAddresses(implode(',', $addresses));
$output->writeln(
- 'Set exempt IP-addresses: ' . implode(', ', $this->maintenanceMode->getAddressInfo()) .
+ 'Set exempt IP-addresses: ' . implode(' ', $this->maintenanceMode->getAddressInfo()) .
''
);
}
diff --git a/setup/src/Magento/Setup/Console/Command/MaintenanceStatusCommand.php b/setup/src/Magento/Setup/Console/Command/MaintenanceStatusCommand.php
index 9162cc47f6bd9..0ac8095c31c0c 100644
--- a/setup/src/Magento/Setup/Console/Command/MaintenanceStatusCommand.php
+++ b/setup/src/Magento/Setup/Console/Command/MaintenanceStatusCommand.php
@@ -54,7 +54,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
($this->maintenanceMode->isOn() ? 'active' : 'not active') . ''
);
$addressInfo = $this->maintenanceMode->getAddressInfo();
- $addresses = implode(', ', $addressInfo);
+ $addresses = implode(' ', $addressInfo);
$output->writeln('List of exempt IP-addresses: ' . ($addresses ? $addresses : 'none') . '');
}
}
diff --git a/setup/src/Magento/Setup/Test/Unit/Console/Command/MaintenanceAllowIpsCommandTest.php b/setup/src/Magento/Setup/Test/Unit/Console/Command/MaintenanceAllowIpsCommandTest.php
index 88038c2e817c1..35af019436d71 100644
--- a/setup/src/Magento/Setup/Test/Unit/Console/Command/MaintenanceAllowIpsCommandTest.php
+++ b/setup/src/Magento/Setup/Test/Unit/Console/Command/MaintenanceAllowIpsCommandTest.php
@@ -75,7 +75,7 @@ public function executeDataProvider()
[
['ip' => ['127.0.0.1', '127.0.0.2'], '--none' => false],
[],
- 'Set exempt IP-addresses: 127.0.0.1, 127.0.0.2' . PHP_EOL
+ 'Set exempt IP-addresses: 127.0.0.1 127.0.0.2' . PHP_EOL
],
[
['--none' => true],
diff --git a/setup/src/Magento/Setup/Test/Unit/Console/Command/MaintenanceStatusCommandTest.php b/setup/src/Magento/Setup/Test/Unit/Console/Command/MaintenanceStatusCommandTest.php
index 07f9990a0bb6f..0b36c86cf8ada 100644
--- a/setup/src/Magento/Setup/Test/Unit/Console/Command/MaintenanceStatusCommandTest.php
+++ b/setup/src/Magento/Setup/Test/Unit/Console/Command/MaintenanceStatusCommandTest.php
@@ -50,7 +50,7 @@ public function executeDataProvider()
[
[true, ['127.0.0.1', '127.0.0.2']],
'Status: maintenance mode is active' . PHP_EOL .
- 'List of exempt IP-addresses: 127.0.0.1, 127.0.0.2' . PHP_EOL
+ 'List of exempt IP-addresses: 127.0.0.1 127.0.0.2' . PHP_EOL
],
[
[true, []],
@@ -63,7 +63,7 @@ public function executeDataProvider()
[
[false, ['127.0.0.1', '127.0.0.2']],
'Status: maintenance mode is not active' . PHP_EOL .
- 'List of exempt IP-addresses: 127.0.0.1, 127.0.0.2' . PHP_EOL
+ 'List of exempt IP-addresses: 127.0.0.1 127.0.0.2' . PHP_EOL
],
];
}