mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00: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:
@@ -242,7 +242,7 @@ class Connection(Rpc, _Connection):
|
|||||||
def alarm_handler(self, signum, frame):
|
def alarm_handler(self, signum, frame):
|
||||||
"""Alarm handler raised in case of command timeout """
|
"""Alarm handler raised in case of command timeout """
|
||||||
display.display('closing shell due to sigalarm', log_only=True)
|
display.display('closing shell due to sigalarm', log_only=True)
|
||||||
self.close_shell()
|
self.close()
|
||||||
|
|
||||||
def exec_command(self, cmd):
|
def exec_command(self, cmd):
|
||||||
"""Executes the cmd on in the shell and returns the output
|
"""Executes the cmd on in the shell and returns the output
|
||||||
|
|||||||
Reference in New Issue
Block a user