Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI-1175: [auth:acsf-logout] undefined array key #1631

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config/prod/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ services:
parent: Acquia\Cli\Command\CommandBase
exclude:
- ../../src/Command/CommandBase.php
- ../../src/Command/Acsf/AcsfCommandBase.php
- ../../src/Command/Acsf/AcsfListCommand.php
- ../../src/Command/Acsf/AcsfListCommandBase.php
- ../../src/Command/Acsf/AcsfApiBaseCommand.php
Expand Down
6 changes: 3 additions & 3 deletions src/Command/Auth/AuthAcsfLogoutCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ protected function commandRequiresAuthentication(): bool {
}

protected function execute(InputInterface $input, OutputInterface $output): int {
if (!$this->cloudApiClientService->isMachineAuthenticated()) {
$factories = $this->datastoreCloud->get('acsf_factories');
if (empty($factories)) {
$this->io->error(['You are not logged into any factories.']);
return 1;
return Command::FAILURE;
}
$factories = $this->datastoreCloud->get('acsf_factories');
foreach ($factories as $url => $factory) {
$factories[$url]['url'] = $url;
}
Expand Down