1.6.2 patch for #91
This commit is contained in:
parent
197ccc5d09
commit
e6e4965be6
2 changed files with 12 additions and 7 deletions
|
@ -1,2 +1,2 @@
|
|||
VERSION = "1.6.1"
|
||||
VERSION = "1.6.2"
|
||||
BRANCH = 'master'
|
||||
|
|
|
@ -140,13 +140,18 @@ class INIParser(object):
|
|||
self.config = self.read_file('varken.ini')
|
||||
self.config_blacklist()
|
||||
# Parse InfluxDB options
|
||||
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')
|
||||
verify_ssl = self.config.getboolean('influxdb', 'verify_ssl')
|
||||
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')
|
||||
verify_ssl = self.config.getboolean('influxdb', 'verify_ssl')
|
||||
|
||||
username = self.config.get('influxdb', 'username')
|
||||
password = self.config.get('influxdb', 'password')
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue