mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
lf_check.py : qa url updated for presentation from server
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -287,6 +287,9 @@ class lf_check():
|
||||
report_url = report_file.replace('/home/lanforge/', '')
|
||||
if report_url.startswith('/'):
|
||||
report_url = report_url[1:]
|
||||
qa_url = self.qa_report_html.replace('home/lanforge','')
|
||||
if qa_url.startswith('/'):
|
||||
qa_url = qa_url[1:]
|
||||
# following recommendation
|
||||
# NOTE: https://stackoverflow.com/questions/24196932/how-can-i-get-the-ip-address-from-nic-in-python
|
||||
# Mail
|
||||
@@ -299,17 +302,17 @@ class lf_check():
|
||||
Results from {hostname}:
|
||||
http://{ip}/{report}
|
||||
QA Report Dashboard:
|
||||
http://{qa_report_html}
|
||||
http://{qa_url}
|
||||
NOTE: Diagrams are links in dashboard
|
||||
""".format(hostname=hostname, ip=ip, report=report_url, email_txt=self.email_txt, lf_mgr_ip=self.lf_mgr_ip,
|
||||
qa_report_html=self.qa_report_html)
|
||||
qa_url=qa_url)
|
||||
|
||||
else:
|
||||
message_txt = """Results from {hostname}:
|
||||
http://{ip}/{report}
|
||||
QA Report Dashboard:
|
||||
QA Report: http://{qa_report_html}
|
||||
""".format(hostname=hostname, ip=ip, report=report_url, qa_report_html=self.qa_report_html)
|
||||
QA Report: http://{qa_url}
|
||||
""".format(hostname=hostname, ip=ip, report=report_url, qa_url=qa_url)
|
||||
|
||||
if (self.email_title_txt != ""):
|
||||
mail_subject = "{} [{hostname}] {date}".format(self.email_title_txt, hostname=hostname,
|
||||
|
||||
Reference in New Issue
Block a user