1.6.2 patch for #91

This commit is contained in:
Nicholas St. Germain 2019-01-12 00:41:39 -06:00
parent 197ccc5d09
commit e6e4965be6
2 changed files with 12 additions and 7 deletions

View file

@ -1,2 +1,2 @@
VERSION = "1.6.1"
VERSION = "1.6.2"
BRANCH = 'master'

View file

@ -140,6 +140,7 @@ class INIParser(object):
self.config = self.read_file('varken.ini')
self.config_blacklist()
# Parse InfluxDB options
try:
url = self.url_check(self.config.get('influxdb', 'url'), include_port=False, section='influxdb')
port = self.config.getint('influxdb', 'port')
ssl = self.config.getboolean('influxdb', 'ssl')
@ -147,6 +148,10 @@ class INIParser(object):
username = self.config.get('influxdb', 'username')
password = self.config.get('influxdb', 'password')
except NoOptionError as e:
self.logger.error('Missing key in %s. Error: %s', "influxdb", e)
self.rectify_ini()
return
self.influx_server = InfluxServer(url=url, port=port, username=username, password=password, ssl=ssl,
verify_ssl=verify_ssl)