Fix that sending multiple commands over SSH failed
The config object has to cloned before unsetting the transport because else the transport is removed for all subsequent calls to CommandTransport::fromConfig(). fixes #8815
This commit is contained in:
parent
5745c1fec4
commit
06d9e4113c
|
@ -51,6 +51,7 @@ abstract class CommandTransport
|
|||
*/
|
||||
public static function fromConfig(ConfigObject $config)
|
||||
{
|
||||
$config = clone $config;
|
||||
switch (strtolower($config->transport)) {
|
||||
case RemoteCommandFile::TRANSPORT:
|
||||
$transport = new RemoteCommandFile();
|
||||
|
|
Loading…
Reference in New Issue