Skip to content

Commit

Permalink
CLI-1175: [auth:acsf-logout] undefined array key
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Nov 13, 2023
1 parent 7f044a2 commit 3be9805
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
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

0 comments on commit 3be9805

Please sign in to comment.