Skip to content

Commit 52a313e

Browse files
author
Theofilos Manitaras
authored
Merge pull request #2013 from teojgo/bugfix/defaults_module_config
[bugfix] Respect default values for module objects in the configuration
2 parents c6b2bb6 + 1c0a012 commit 52a313e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

reframe/core/runtime.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,8 @@ def _load_cmds_tracked(**module):
215215
for c in conflicted:
216216
commands += modules_system.emit_unload_commands(c)
217217

218-
if 'path' not in mod.keys():
219-
mod['path'] = None
220-
221218
commands += modules_system.emit_load_commands(
222-
m, module['collection'], module['path'],
219+
m, module.get('collection', False), module.get('path', None)
223220
)
224221

225222
return commands

0 commit comments

Comments
 (0)