Skip to content
Open
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
4 changes: 4 additions & 0 deletions easybuild/framework/easyconfig/easyconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,10 @@ def get_ref(self, key):
def __setitem__(self, key, value):
"""Set value of specified easyconfig parameter (help text & co is left untouched)"""
if key in self._config:
# display a warning if we are replacing a value with templates by a value with templates resolved
if "%(" in str(self._config[key][0]) and "%(" not in str(value):
self.log.warning("Replacing value of templated parameter '%s' with a value with templates"
"resolved. Old value: %s, new value: %s" % (key, self._config[key][0], value))
self._config[key][0] = value
else:
raise EasyBuildError("Use of unknown easyconfig parameter '%s' when setting parameter value to '%s'",
Expand Down