1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00

fix variable reference bug introduced from #22

This commit is contained in:
checktheroads 2019-12-02 19:39:45 -07:00
parent 1fc0ecdc62
commit 48cfcc3a83

View file

@ -163,6 +163,7 @@ class Netmiko:
logger.debug(
f"Response for direction connection with command {self.command}:\n{response}"
)
nm_connect_direct.disconnect()
except (
NetMikoAuthenticationException,
NetMikoTimeoutException,
@ -172,7 +173,6 @@ class Netmiko:
response = config["messages"]["general"]
status = codes["danger"]
logger.error(f"{netmiko_exception}, {status}")
nm_connect_direct.disconnect()
return response, status
def proxied(self):