diff --git a/src/service/clmcservice/aggregationapi/utilities.py b/src/service/clmcservice/aggregationapi/utilities.py index 14fd1b4114733f88f684bcf955de228961432b5e..4a54b29b7281c657377f342f8c3c1a0a17baec84 100644 --- a/src/service/clmcservice/aggregationapi/utilities.py +++ b/src/service/clmcservice/aggregationapi/utilities.py @@ -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 diff --git a/src/service/clmcservice/configapi/__init__.py b/src/service/clmcservice/configapi/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..81bb24987a8da2e191361344076c19765fd854ed 100644 --- a/src/service/clmcservice/configapi/__init__.py +++ b/src/service/clmcservice/configapi/__init__.py @@ -0,0 +1 @@ +__all__ = ['views'] diff --git a/src/service/clmcservice/whoamiapi/__init__.py b/src/service/clmcservice/whoamiapi/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..81bb24987a8da2e191361344076c19765fd854ed 100644 --- a/src/service/clmcservice/whoamiapi/__init__.py +++ b/src/service/clmcservice/whoamiapi/__init__.py @@ -0,0 +1 @@ +__all__ = ['views']