From 969ae88425d655b37dff9247656a90983de6cfca Mon Sep 17 00:00:00 2001 From: iRaven4522 Date: Fri, 23 Feb 2024 21:29:28 -0600 Subject: [PATCH] sanity check, 3 second wait before ssh cmds --- deploy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy.py b/deploy.py index ebc7c02..4afb4c4 100644 --- a/deploy.py +++ b/deploy.py @@ -44,6 +44,8 @@ def deploy(): sshc.set_missing_host_key_policy(paramiko.AutoAddPolicy()) # so we don't get whined at and crash over a unrecognized host-key sshc.connect(cfg["server"],port=cfg["port"],username=cfg["ssh-user"],password=cfg["ssh-pw"]) + time.sleep(3) # Sleep 3 seconds, so that the ONT is initialized enough + for command in shcommands: sshc.exec_command(command) print(f'{command} was executed on the ONT')