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
This commit is contained in:
Justin Ferrieu 2018-12-17 10:18:51 +01:00
parent 884977fbcf
commit 990a5abb43
1 changed files with 3 additions and 3 deletions

View File

@ -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,