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:
parent
1fc0ecdc62
commit
48cfcc3a83
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue