forked from ungleich-public/cdist
Default ssh mux options fixes.
This commit is contained in:
parent
215e58eb38
commit
b4ac23b4f8
1 changed files with 4 additions and 2 deletions
|
@ -22,6 +22,8 @@
|
|||
#
|
||||
|
||||
def inspect_ssh_mux_opts():
|
||||
import subprocess
|
||||
|
||||
"""Inspect whether or not ssh supports multiplexing options"""
|
||||
wanted_mux_opts = {
|
||||
"ControlPath":"~/.ssh/master-%l-%r@%h:%p",
|
||||
|
@ -38,7 +40,7 @@ def inspect_ssh_mux_opts():
|
|||
for x in check:
|
||||
try:
|
||||
subprocess.check_output("ssh -o {}".format(x),
|
||||
stderr=subprocess.STDOUT)
|
||||
stderr=subprocess.STDOUT, shell=True)
|
||||
except subprocess.CalledProcessError as e:
|
||||
foo = e.output.decode().lower()
|
||||
if not "bad configuration option" in foo:
|
||||
|
|
Loading…
Reference in a new issue