@@ -61,7 +61,7 @@ def _ellide_log_lines(log):
61
61
return "\n {}" .format ("\n " .join (reduced_message ))
62
62
63
63
def _ssh (hostname_or_ip , cmd , check , simple_output , suppress_fingerprint_warnings ,
64
- background , target_os , decode , options ):
64
+ background , decode , options ):
65
65
opts = list (options )
66
66
opts .append ('-o "BatchMode yes"' )
67
67
if suppress_fingerprint_warnings :
@@ -134,9 +134,9 @@ def _ssh(hostname_or_ip, cmd, check, simple_output, suppress_fingerprint_warning
134
134
# This function is kept short for shorter pytest traces upon SSH failures, which are common,
135
135
# as pytest prints the whole function definition that raised the SSHCommandFailed exception
136
136
def ssh (hostname_or_ip , cmd , check = True , simple_output = True , suppress_fingerprint_warnings = True ,
137
- background = False , target_os = 'linux' , decode = True , options = []):
137
+ background = False , decode = True , options = []):
138
138
success , result_or_exc = _ssh (hostname_or_ip , cmd , check , simple_output , suppress_fingerprint_warnings ,
139
- background , target_os , decode , options )
139
+ background , decode , options )
140
140
if not success :
141
141
raise result_or_exc
142
142
return result_or_exc
0 commit comments