1
0
Fork 0
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:
Peter Sprygada 2017-06-17 15:48:30 -04:00 committed by GitHub
parent 448efdb9e5
commit 97e24dc317

View file

@ -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