Skip to content

Commit 73d40f6

Browse files
committed
Fix drush alias command for Enterprise projects
1 parent 3e1cc8e commit 73d40f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Command/Local/LocalDrushAliasesCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
108108
$envVarsService = $this->getService('remote_env_vars');
109109
/** @var \Platformsh\Cli\Service\Ssh $ssh */
110110
$ssh = $this->getService('ssh');
111+
/** @var \Platformsh\Cli\Service\SshDiagnostics $sshDiagnostics */
112+
$sshDiagnostics = $this->getService('ssh_diagnostics');
111113
/** @var \Platformsh\Cli\Service\Shell $shell */
112114
$shell = $this->getService('shell');
113115
foreach ($environments as $environment) {
@@ -128,7 +130,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
128130
continue;
129131
}
130132
try {
131-
$appRoot = $envVarsService->getEnvVar('APP_DIR', new RemoteHost($sshUrl, $ssh, $shell));
133+
$appRoot = $envVarsService->getEnvVar('APP_DIR', new RemoteHost($sshUrl, $ssh, $shell, $sshDiagnostics));
132134
} catch (\Symfony\Component\Process\Exception\RuntimeException $e) {
133135
$this->stdErr->writeln(sprintf(
134136
'Unable to find app root for environment %s, app %s',

0 commit comments

Comments
 (0)