Add verification
Static analysis flags that we're not checking certs here. Make it
optional, and default to verification.
Tested: No backend available. Commands parse on command line, and fail
in redfish.
Change-Id: I7558c55b5f1e1695844b986b5587561d1391f245
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/scripts/hostlogger_test.py b/scripts/hostlogger_test.py
index d73327a..6661ca7 100755
--- a/scripts/hostlogger_test.py
+++ b/scripts/hostlogger_test.py
@@ -18,6 +18,7 @@
"--username", help="Username to connect with", default="root"
)
parser.add_argument("--password", help="Password to use", default="0penBmc")
+parser.add_argument("--verify", default=True, help="Verify TLS certificates")
args = parser.parse_args()
@@ -27,7 +28,7 @@
resp = requests.get(
url=url,
cert=args.cert,
- verify=False,
+ verify=args.verify,
headers={"Cache-Control": "no-cache"},
timeout=5,
)