forked from lix-project/lix
Pass common ssh options in isMasterRunning
This commit is contained in:
parent
5454fdcceb
commit
d5e1eb20a2
|
@ -42,7 +42,10 @@ void SSHMaster::addCommonSSHOpts(Strings & args)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SSHMaster::isMasterRunning() {
|
bool SSHMaster::isMasterRunning() {
|
||||||
auto res = runProgram(RunOptions {.program = "ssh", .args = {"-O", "check", host}, .mergeStderrToStdout = true});
|
Strings args = {"-O", "check", host};
|
||||||
|
addCommonSSHOpts(args);
|
||||||
|
|
||||||
|
auto res = runProgram(RunOptions {.program = "ssh", .args = args, .mergeStderrToStdout = true});
|
||||||
return res.first == 0;
|
return res.first == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue