cv_test_manager.py , cv_test_reports.py : bug fix on report_dir

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-06-29 14:32:15 -06:00
parent 3408d58078
commit 7ca355c13d
2 changed files with 3 additions and 3 deletions

View File

@@ -5,13 +5,13 @@ class lanforge_reports:
def pull_reports(self, hostname="localhost", port=22, username="lanforge", password="lanforge",
report_location="/home/lanforge/html-reports/",
local_lf_report_dir="../../../reports/"):
report_dir="../../../reports/"):
ssh = paramiko.SSHClient()
ssh.load_system_host_keys()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(hostname=hostname, username=username, password=password, port=port, allow_agent=False, look_for_keys=False)
with SCPClient(ssh.get_transport()) as scp:
scp.get(remote_path=report_location, report_dir=local_lf_report_dir, recursive=True)
scp.get(remote_path=report_location, report_dir=report_dir, recursive=True)
scp.close()