File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
openwisp_controller/connection/connectors Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,6 @@ def exec_command(
186186 """
187187 # paramiko expects timeout as a float
188188 timeout = float (timeout )
189-
190189 logger .info ("Executing command: {0}" .format (command ))
191190 # execute commmand
192191 try :
@@ -200,7 +199,6 @@ def exec_command(
200199 except Exception as e :
201200 logger .exception (e )
202201 raise e
203-
204202 # workaround https://github.com/paramiko/paramiko/issues/1815
205203 # workaround https://github.com/paramiko/paramiko/issues/1787
206204 # Ref. https://docs.paramiko.org/en/stable/api/channel.html#paramiko.channel.Channel.recv_exit_status # noqa
@@ -210,7 +208,6 @@ def exec_command(
210208 log_message = f"Command timed out after { timeout } seconds."
211209 logger .info (log_message )
212210 raise CommandTimeoutException (log_message )
213-
214211 exit_status = stdout .channel .exit_status
215212 # log standard output
216213 # try to decode to UTF-8, ignoring unconvertible characters
You can’t perform that action at this time.
0 commit comments