mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixes issue with SIGALARM call in network_cli (#25832)
The alarm_handler method was calling a method close_shell() that doesn't exist. This updates the alarm handler to call the current method close()
This commit is contained in:
parent
448efdb9e5
commit
97e24dc317
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ class Connection(Rpc, _Connection):
|
|||
def alarm_handler(self, signum, frame):
|
||||
"""Alarm handler raised in case of command timeout """
|
||||
display.display('closing shell due to sigalarm', log_only=True)
|
||||
self.close_shell()
|
||||
self.close()
|
||||
|
||||
def exec_command(self, cmd):
|
||||
"""Executes the cmd on in the shell and returns the output
|
||||
|
|
Loading…
Reference in a new issue