Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove default value definition in ConfigValidator. It is alread… #216

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/powerapi/cli/config_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ def validate(config: Dict):
logging.error("no output configuration found")
raise MissingArgumentException(argument_name='output')

for output_type in config['output']:
output_config = config['output'][output_type]
if 'model' not in output_config:
output_config['model'] = 'HWPCReport'
if 'name' not in output_config:
output_config['name'] = 'default_pusher'

if 'input' not in config:
logging.error("no input configuration found")
raise MissingArgumentException(argument_name='input')
Expand All @@ -77,11 +70,6 @@ def validate(config: Dict):
logging.error("stream mode cannot be used for csv input")
raise NotAllowedArgumentValueException("Stream mode cannot be used for csv input")

if 'model' not in input_config:
input_config['model'] = 'PowerReport'
if 'name' not in input_config:
input_config['name'] = 'default_puller'

if 'pre-processor' in config:
for pre_processor_id in config['pre-processor']:
pre_processor_config = config['pre-processor'][pre_processor_id]
Expand Down