ysde/grafana-backup-tool

get_grafana_version not using verify_ssl

Closed this issue · 0 comments

yg265 commented

When using new save alert features, we met some ssl related errors.
We are using verify_ssl=False. It seems that in dashboardApi.py, get_grafana_version method does not pass verify_ssl in config to request.get(). Is it possible that the verify_ssl parameter could be added to it?

def get_grafana_version(grafana_url):
    r = requests.get('{0}/api/health'.format(grafana_url))
    if r.status_code == 200:
        return version.parse(r.json()['version'])
    else:
        raise Exception("Unable to get version, returned response: {0}".format(r.status_code))