more config options: configurable font size, ssl verification

This commit is contained in:
Franzi 2020-12-19 09:08:53 +01:00
parent 6d65637676
commit db36b18ff8
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 80 additions and 38 deletions

View file

@ -38,8 +38,8 @@ def regenerate():
try:
broken_hosts = set()
hosts = requests.get(CONFIG["url_hosts"], auth=(CONFIG["api_user"], CONFIG["api_password"]), verify=False).json()
serv = requests.get(CONFIG["url_services"], auth=(CONFIG["api_user"], CONFIG["api_password"]), verify=False).json()
hosts = requests.get(CONFIG["url_hosts"], auth=(CONFIG["api_user"], CONFIG["api_password"]), verify=CONFIG["ssl_verify"]).json()
serv = requests.get(CONFIG["url_services"], auth=(CONFIG["api_user"], CONFIG["api_password"]), verify=CONFIG["ssl_verify"]).json()
if 'results' not in hosts:
raise KeyError('API call for hosts did not return any results')