From 990a5abb43a23c747dc0d4497af3692b49f81b71 Mon Sep 17 00:00:00 2001 From: Justin Ferrieu Date: Mon, 17 Dec 2018 10:18:51 +0100 Subject: [PATCH] Changed influxdb v2 storage option 'cacert' to 'cafile' In order to respect consistency across the whole project, 'cacert' option as defined in the influxdb v2 storage has been changed to 'cafile'. (as it is already the case for e.g. Gnocchi collector) Change-Id: Idb4a39d7ad9edf0f3eecb32b7d4e4e34ebe73a81 --- cloudkitty/storage/v2/influx.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudkitty/storage/v2/influx.py b/cloudkitty/storage/v2/influx.py index 3f286d1f..0bf08bde 100644 --- a/cloudkitty/storage/v2/influx.py +++ b/cloudkitty/storage/v2/influx.py @@ -56,7 +56,7 @@ influx_storage_opts = [ default=False, ), cfg.StrOpt( - 'cacert', + 'cafile', help='Path of the CA certificate to trust for HTTPS connections', default=None ), @@ -85,8 +85,8 @@ class InfluxClient(object): verify = CONF.storage_influxdb.use_ssl and not \ CONF.storage_influxdb.insecure - if verify and CONF.storage_influxdb.cacert: - verify = CONF.storage_influxdb.cacert + if verify and CONF.storage_influxdb.cafile: + verify = CONF.storage_influxdb.cafile return influxdb.InfluxDBClient( username=CONF.storage_influxdb.username,