From 4ce44034cb1c86ebff6fd7a5c8cab1752b936f6e Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 14 Mar 2021 10:20:05 +0100 Subject: [PATCH] Ensured API key name appears in the proper color in the console, for disabled or expired API keys --- module/CLI/src/Command/Api/ListKeysCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/CLI/src/Command/Api/ListKeysCommand.php b/module/CLI/src/Command/Api/ListKeysCommand.php index ac5fc73d..e8326826 100644 --- a/module/CLI/src/Command/Api/ListKeysCommand.php +++ b/module/CLI/src/Command/Api/ListKeysCommand.php @@ -57,8 +57,7 @@ class ListKeysCommand extends BaseCommand $messagePattern = $this->determineMessagePattern($apiKey); // Set columns for this row - $rowData = [sprintf($messagePattern, $apiKey)]; - $rowData[] = $apiKey->name() ?? '-'; + $rowData = [sprintf($messagePattern, $apiKey), sprintf($messagePattern, $apiKey->name() ?? '-')]; if (! $enabledOnly) { $rowData[] = sprintf($messagePattern, $this->getEnabledSymbol($apiKey)); }