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')