From e1ee319f86587dbf5837a0a83c33c06a58e6848b Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 30 Jul 2018 13:32:13 +0300 Subject: Change: make qvisqve-get-token not whinge about TLS certs --- qvisqve-get-token | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qvisqve-get-token b/qvisqve-get-token index 8068585..77c9ab8 100755 --- a/qvisqve-get-token +++ b/qvisqve-get-token @@ -1,12 +1,21 @@ #!/usr/bin/env python3 +import logging import sys +import urllib3 import requests +# We do not currently care about verify certificates. Maybe later. +# FIXME: Remove these once we have proper certificates for everything, +# including test instances of Qvarn. +urllib3.disable_warnings() +logging.captureWarnings(True) + + baseurl, user, secret = sys.argv[1:4] scopes = sys.argv[4:] -- cgit v1.2.1