Skip to content

Commit

Permalink
Resolved hound issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-lq committed Mar 31, 2023
1 parent 18f3fa0 commit be64cdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion eessi_bot_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
REQUIRED_CONFIG = {
NEW_JOB_COMMENTS: [AWAITS_LAUCH],
RUNNING_JOB_COMMENTS: [RUNNING_JOB],
FINISHED_JOB_COMMENTS: [SUCCESS, FAILURE, NO_SLURM_OUT, SLURM_OUT, MISSING_MODULES,
FINISHED_JOB_COMMENTS: [SUCCESS, FAILURE, NO_SLURM_OUT, SLURM_OUT, MISSING_MODULES,
NO_TARBALL_MESSAGE, NO_MATCHING_TARBALL, MULTIPLE_TARBALLS]
}

Expand Down
10 changes: 5 additions & 5 deletions tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ def read_config(path='app.cfg'):

return config


def check_required_cfg_settings(req_settings, path="app.cfg"):
"""
Reads the config file and checks if it contains the required settings,
signaling an error if not
Args:
Reads the config file and checks if it contains the required settings, signaling an error if not
Args:
req_settings (dict (str, list)): required settings
path (string): path to the configuration file
Returns:
Returns:
None
"""
cfg = read_config()
Expand All @@ -47,4 +47,4 @@ def check_required_cfg_settings(req_settings, path="app.cfg"):
error(f'Missing section "{section}" in configuration file {path}.')
for item in req_settings[section]:
if item not in cfg[section]:
error(f'Missing configuration item "{item}" in section "{section}" of configuration file {path}.')
error(f'Missing configuration item "{item}" in section "{section}" of configuration file {path}.')

0 comments on commit be64cdc

Please sign in to comment.