Skip to content

Commit

Permalink
Fixes #472: Acquia CLI tries to pull the files directory even when no…
Browse files Browse the repository at this point in the history
… files directory exists yet. (acquia#476)
  • Loading branch information
grasmash authored Mar 29, 2021
1 parent 5be2020 commit 42eedf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/CommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ protected function getCloudSites($cloud_environment): array {
$command = ['ls', $this->getCloudSitesPath($cloud_environment, $sitegroup)];
$process = $this->sshHelper->executeCommand($cloud_environment, $command, FALSE);
if ($process->isSuccessful()) {
return explode("\n", trim($process->getOutput()));
return array_filter(explode("\n", trim($process->getOutput())));
}

throw new AcquiaCliException("Could not get Cloud sites");
Expand Down

0 comments on commit 42eedf9

Please sign in to comment.