Skip to content

Commit

Permalink
v1.6.2 Merge
Browse files Browse the repository at this point in the history
v1.6.2 Merge
  • Loading branch information
dirtycajunrice authored Jan 12, 2019
2 parents 6fe6a84 + ea98b25 commit cae34c1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Change Log

## [v1.6.1](https://github.com/Boerderij/Varken/tree/v1.6.1) (2019-01-11)
## [v1.6.2](https://github.com/Boerderij/Varken/tree/v1.6.2) (2019-01-12)
[Full Changelog](https://github.com/Boerderij/Varken/compare/v1.6.1...v1.6.2)

**Fixed bugs:**

- Rectify influxdb ini [\#91](https://github.com/Boerderij/Varken/issues/91)

**Merged pull requests:**

- v1.6.2 Merge [\#90](https://github.com/Boerderij/Varken/pull/92) ([DirtyCajunRice](https://github.com/DirtyCajunRice))

## [v1.6.1](https://github.com/Boerderij/Varken/tree/v1.6.1) (2019-01-12)
[Full Changelog](https://github.com/Boerderij/Varken/compare/v1.6...v1.6.1)

**Implemented enhancements:**
Expand All @@ -17,7 +28,7 @@

**Merged pull requests:**

- v1.6 Merge [\#90](https://github.com/Boerderij/Varken/pull/85) ([DirtyCajunRice](https://github.com/DirtyCajunRice))
- v1.6.1 Merge [\#90](https://github.com/Boerderij/Varken/pull/90) ([DirtyCajunRice](https://github.com/DirtyCajunRice))

## [v1.6](https://github.com/Boerderij/Varken/tree/v1.6) (2019-01-04)
[Full Changelog](https://github.com/Boerderij/Varken/compare/v1.5...v1.6)
Expand Down
2 changes: 1 addition & 1 deletion varken/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = "1.6.1"
VERSION = "1.6.2"
BRANCH = 'master'
19 changes: 12 additions & 7 deletions varken/iniparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,18 @@ def parse_opts(self, read_file=False):
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')

username = self.config.get('influxdb', 'username')
password = self.config.get('influxdb', 'password')
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')
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)
Expand Down

0 comments on commit cae34c1

Please sign in to comment.