From ecea4c13a4b11a8e7f1e3a63ccaaa30119ceaae0 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Mon, 6 Dec 2021 11:37:26 -0800 Subject: [PATCH] GhostRequest: Cleanup whitespace Signed-off-by: Matthew Stidham --- py-dashboard/GhostRequest.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/py-dashboard/GhostRequest.py b/py-dashboard/GhostRequest.py index b46329df..56a2be1e 100644 --- a/py-dashboard/GhostRequest.py +++ b/py-dashboard/GhostRequest.py @@ -208,7 +208,6 @@ class GhostRequest: def custom_post(self, folder, - authors, title='custom'): self.upload_images(folder) head = '''This is a custom post created via a script''' @@ -219,11 +218,9 @@ class GhostRequest: text=head) def kpi_to_ghost(self, - authors, folders, parent_folder=None, title=None, - server_pull=None, ghost_host=None, port=22, user_push=None, @@ -231,13 +228,12 @@ class GhostRequest: customer=None, testbed=None, test_run=None, - target_folders=list(), + target_folders=None, grafana_token=None, grafana_host=None, grafana_port=3000, grafana_datasource='InfluxDB', grafana_bucket=None): - global dut_hw, dut_sw, dut_model, dut_serial now = datetime.now() @@ -444,7 +440,7 @@ class GhostRequest: # create Grafana Dashboard target_files = [] for folder in target_folders: - target_file=folder.split('/')[-1] + '/kpi.csv' + target_file = folder.split('/')[-1] + '/kpi.csv' try: open(target_file) target_files.append(target_file) @@ -506,7 +502,8 @@ class GhostRequest: Influx Host: %s
Influx Port: %s
Influx Organization: %s
- Influx Bucket: %s
''' % (influx_error, self.influx_host, self.influx_port, self.influx_org, self.influx_bucket) + Influx Bucket: %s
''' % ( + influx_error, self.influx_host, self.influx_port, self.influx_org, self.influx_bucket) raw_test_tags = list() test_tag_table = '' @@ -528,8 +525,8 @@ class GhostRequest: else: column_name = column dut_table_columns += ( - '%s%s' % ( - column_name, duts[column]) + '%s%s' % + (column_name, duts[column]) ) dut_table = '