Skip to content

Commit

Permalink
correct pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
k-winters committed Feb 18, 2025
1 parent 6ed4d55 commit a1f1429
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scubagoggles/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def get_tenant_info(self) -> dict:
Gets the high-level tenant info using the directory API
"""
tenant_id = ''
try:
try:
response = self._services['directory'].customers().get(
customerKey = self._customer_id).execute()
tenant_id = response.get('id')
Expand Down
9 changes: 5 additions & 4 deletions scubagoggles/reporter/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self,
"""Reporter class initialization
:param product: name of product being tested
:param tenant_ID: Unique ID of GWS Customer
:param tenant_id: Unique ID of GWS Customer
:param tenant_name: Customer name
:param tenant_domain: The primary domain of the GWS org
:param main_report_name: Name of the main report HTML file.
Expand All @@ -63,7 +63,7 @@ def __init__(self,
"""

self._product = product
self._tenant_ID = tenant_id
self._tenant_id = tenant_id
self._tenant_name = tenant_name
self._tenant_domain = tenant_domain
self._main_report_name = main_report_name
Expand Down Expand Up @@ -186,7 +186,8 @@ def build_front_page_html(cls, fragments: list, tenant_info: dict) -> str:
+ ' ' + time.tzname[time.daylight])

meta_data = ('<table style = "text-align:center;">'
'<tr><th>Customer Name</th><th>Customer Domain</th><th>Customer ID</th><th>Report Date</th></tr>'
'<tr><th>Customer Name</th><th>Customer Domain</th>'
'<th>Customer ID</th><th>Report Date</th></tr>'
f'<tr><td>{tenant_info["topLevelOU"]}</td><td>{tenant_info["domain"]}</td>'
f'<td>{tenant_info["ID"]}</td><td>{report_date}'
'</td></tr></table>')
Expand Down Expand Up @@ -316,7 +317,7 @@ def _build_report_html(self, fragments: list) -> str:
'<th>Cusomter ID</th><th>Report Date</th>'
'<th>Baseline Version</th><th>Tool Version</th></tr>'
f'<tr><td>{self._tenant_name}</td><td>{self._tenant_domain}</td>'
f'<td>{self._tenant_ID}</td><td>{report_date}</td>'
f'<td>{self._tenant_id}</td><td>{report_date}</td>'
f'<td>{Version.suffix}</td><td>{Version.current}</td></tr>'
'</table>')

Expand Down

0 comments on commit a1f1429

Please sign in to comment.