sanity check, 3 second wait before ssh cmds

This commit is contained in:
iRaven 2024-02-23 21:29:28 -06:00
parent a22c509000
commit 969ae88425

View File

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