From b7dba7448a6588f583328783c4918f432d4be945 Mon Sep 17 00:00:00 2001 From: Alex Waclawik Date: Tue, 27 Sep 2022 16:03:20 -0400 Subject: [PATCH] ~ --- README.md | 2 +- sumotool.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5bd52dd..32a8fd0 100644 --- a/README.md +++ b/README.md @@ -60,4 +60,4 @@ template = DashboardTemplate - Default -> **DashboardTemplate** - Printer-Friendly -> **DashboardReportModeTemplate** -

\ No newline at end of file +

diff --git a/sumotool.py b/sumotool.py index 80cf303..c4599bd 100644 --- a/sumotool.py +++ b/sumotool.py @@ -18,6 +18,7 @@ # initialize configparser config = configparser.ConfigParser() config.read("config.ini") +version = config['API']['version'] sections = config.sections() report_num = (len(sections) - 1) # initialize date and time, as well as declare date and time vars @@ -25,7 +26,7 @@ c_date = now.strftime("%y/%m/%d") c_time = now.strftime("%H:%M:%S") f_datetime = now.strftime("%y%m%d-%H%M%S") -print("SumoLogic Report Tool 1.3.1") +print("SumoLogic Report Tool " + version) print("The date is " + c_date + " and the time is currently " + c_time) # establish API connection @@ -87,8 +88,6 @@ def do_jobs(): keepGoing = False print("\n|--< Jobs Finished >--|") - - def rename_and_move(): for x in range(0, report_num): # generate the snapshot @@ -110,4 +109,4 @@ def rename_and_move(): print("\nSUCCESS: The Panel Report '" + filename + "' has been saved") if __name__ == "__main__": - main() \ No newline at end of file + main()