From 13a4d000adc2a9972a774bae6b845c57febd67ce Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Tue, 20 Feb 2018 16:58:46 -0800 Subject: [PATCH] Fixes #3127: Non-interactive invoke via 'drush @alias cmd' --- src/Runtime/RedispatchHook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Runtime/RedispatchHook.php b/src/Runtime/RedispatchHook.php index 89c3236404..73926b7d2d 100644 --- a/src/Runtime/RedispatchHook.php +++ b/src/Runtime/RedispatchHook.php @@ -85,13 +85,14 @@ public function redispatch(InputInterface $input) // in $redispatchArgs. $redispatchOptions = []; + // n.b. Defining the 'backend' flag here causes failed execution in the + // non-interactive case, even if 'backend' is set to 'false'. $backend_options = [ 'drush-script' => $this->getConfig()->get('paths.drush-script', null), 'remote-host' => $remote_host, 'remote-user' => $remote_user, 'additional-global-options' => [], 'integrate' => true, - 'backend' => false, ]; if ($input->isInteractive()) { $backend_options['#tty'] = true;