From 208b5881b86fb18aa7e3d84106924fc6c092d5ca Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Wed, 2 Aug 2017 17:11:01 +0200 Subject: [PATCH] fix issue with default name of the measurements for the influx plugin --- feed2toot/confparsers/plugins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feed2toot/confparsers/plugins.py b/feed2toot/confparsers/plugins.py index b92269d..7600dd2 100644 --- a/feed2toot/confparsers/plugins.py +++ b/feed2toot/confparsers/plugins.py @@ -28,7 +28,7 @@ def parseplugins(config): # host, port, user, pass, database options ########################################## plugins[section] = {} - for currentoption in ['host', 'port', 'user', 'pass', 'database']: + for currentoption in ['host', 'port', 'user', 'pass', 'database', 'measurement']: if config.has_option(section, currentoption): plugins[section][currentoption] = config.get(section, currentoption) if 'host' not in plugins[section]: @@ -36,7 +36,7 @@ def parseplugins(config): if 'port' not in plugins[section]: plugins[section]['port'] = 8086 if 'measurement' not in plugins[section]: - plugins[section]['measurement'] = 'tweets' + plugins[section]['measurement'] = 'toots' for field in ['user', 'pass', 'database']: if field not in plugins[section]: sys.exit('Parsing error for {field} in the [{section}] section: {field} is not defined'.format(field=field, section=section))