Skip to content

Commit

Permalink
Show a meaningful error when using the old ec.enable_templating
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Jan 3, 2025
1 parent 3c63cda commit 45196fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions easybuild/framework/easyconfig/easyconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,11 @@ def templating_enabled(self):
"""Check whether templating is enabled on this EasyConfig"""
return self._templating_enabled

def _enable_templating(self, *_):
self.log.nosupport("self.enable_templating is replaced by self.templating_enabled. "
"To disable it use the self.disable_templating context manager", '5.0')
enable_templating = property(_enable_templating, _enable_templating)

@contextmanager
def allow_unresolved_templates(self):
"""Temporarily allow templates to be not (fully) resolved.
Expand Down

0 comments on commit 45196fb

Please sign in to comment.