make modification to netdata charts to accomodate staging certs

This commit is contained in:
Jonathan Math 2021-04-10 12:04:30 -05:00
parent e82da094ab
commit a6e99ea00c
2 changed files with 6 additions and 2 deletions

View file

@ -3,7 +3,9 @@ import os
import requests
MONITOR_URL = os.getenv("MONITOR_URL")
if MONITOR_URL == "https://haproxy/monitor":
STAGING = os.getenv("STAGING")
if MONITOR_URL == "https://haproxy/monitor" or STAGING:
verify = False
else:
verify = True

View file

@ -3,7 +3,9 @@ import os
import requests
MONITOR_URL = os.getenv("MONITOR_URL")
if MONITOR_URL == "https://haproxy/monitor":
STAGING = os.getenv("STAGING")
if MONITOR_URL == "https://haproxy/monitor" or STAGING:
verify = False
else:
verify = True