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()
pull/25836/head
Peter Sprygada 9 years ago committed by GitHub
parent 448efdb9e5
commit 97e24dc317

@ -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…
Cancel
Save