From 228019695620bbad5e718ae2b74a3c2366e639f1 Mon Sep 17 00:00:00 2001 From: "s.mostryukov" Date: Sun, 22 Jun 2025 14:26:32 +0300 Subject: [PATCH] fix delay factor --- app/backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/backup.py b/app/backup.py index e5bcea8..21dce7b 100644 --- a/app/backup.py +++ b/app/backup.py @@ -65,7 +65,7 @@ def connect_to_device(vendor: str, host: str, name: str="") -> ConnectHandler: conn_conf["username"] = cfg.net_dev.domain + "\\" + cfg.net_dev.user try: connection: ConnectHandler = ConnectHandler(**conn_conf) - log.info("connect to %s %s", name, host) + log.info("connect to %s %s %s", vendor, name, host) return connection except exceptions.NetmikoAuthenticationException: log.warning("Authentication error %s %s ", name, host) @@ -78,7 +78,7 @@ def connect_to_device(vendor: str, host: str, name: str="") -> ConnectHandler: def send_command(connection: ConnectHandler, command: str) -> str: log.info("send command") try: - result: str = connection.send_command(command, read_timeout=cfg.net_dev.read_timeout, delay_factor=2) + result: str = connection.send_command(command, read_timeout=cfg.net_dev.read_timeout, delay_factor=cfg.net_dev.delay_factor) log.info('command send success') except exceptions.NetmikoTimeoutException: result = "NetmikoTimeoutException"