Skip to content
Snippets Groups Projects
Commit 79fb58ef authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Updated the aggregator's configuration validation

parent 7f9f7de9
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,11 @@ def validate_conf_file(conf_file_path):
if key not in conf[AGGREGATOR_CONFIG_SECTION]:
return None # the configuration must include each configuration attribute
try:
int(conf[AGGREGATOR_CONFIG_SECTION]['aggregator_report_period'])
except ValueError:
return None # the configuration must contain a valid integer for the aggregator's report period
return conf
......
__all__ = ['views']
__all__ = ['views']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment