summaryrefslogtreecommitdiff
path: root/scripts/hostlogger_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hostlogger_test.py')
-rwxr-xr-xscripts/hostlogger_test.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/scripts/hostlogger_test.py b/scripts/hostlogger_test.py
index 415c584dc1..d73327a853 100755
--- a/scripts/hostlogger_test.py
+++ b/scripts/hostlogger_test.py
@@ -6,11 +6,10 @@
import argparse
import json
import logging
-import os.path
-import requests
-import traceback
import time
-from requests.auth import HTTPBasicAuth
+import traceback
+
+import requests
parser = argparse.ArgumentParser()
parser.add_argument("--host", help="Host to connect to", required=True)
@@ -45,7 +44,7 @@ def requests_get(url):
return data
- except Exception as err:
+ except Exception:
traceback.print_exc()
pass
@@ -62,8 +61,8 @@ def label_parser(url, label):
def main():
logging.captureWarnings(True)
totalEntryUri = (
- "https://{}/redfish/v1/Systems/system/"
- + "LogServices/HostLogger/Entries/".format(args.host)
+ f"https://{args.host}/redfish/v1/Systems/system/"
+ + "LogServices/HostLogger/Entries/"
)
id = 0
entryCount = 0