Merge pull request #326 from piomet1/master

Reading a default ssh user while executing remote command
This commit is contained in:
Andrés Montañez 2017-01-30 08:48:52 -03:00 committed by GitHub
commit ccb59ca095

View file

@ -407,7 +407,7 @@ class Runtime
*/
public function runRemoteCommand($cmd, $jail, $timeout = 120)
{
$user = $this->getEnvOption('user');
$user = $this->getEnvOption('user', $this->getCurrentUser());
$sudo = $this->getEnvOption('sudo', false);
$host = $this->getWorkingHost();
$sshConfig = $this->getSSHConfig();