use same args for remoteProcess and instantRemoteProcess

This commit is contained in:
Andras Bacsai
2023-05-03 09:38:53 +02:00
parent 3e475d87eb
commit ad671cfcf1
7 changed files with 27 additions and 18 deletions

View File

@@ -120,7 +120,7 @@ if (!function_exists('formatDockerLabelsToJson')) {
}
}
if (!function_exists('instantRemoteProcess')) {
function instantRemoteProcess(Server $server, array $command, $throwError = true)
function instantRemoteProcess(array $command, Server $server, $throwError = true)
{
$command_string = implode("\n", $command);
$private_key_location = savePrivateKeyForServer($server);