Skip to content

Commit 1c7bdec

Browse files
committed
Show a meaningful error when using the old ec.enable_templating
1 parent 09a7f52 commit 1c7bdec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

easybuild/framework/easyconfig/easyconfig.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,11 @@ def templating_enabled(self):
557557
"""Check whether templating is enabled on this EasyConfig"""
558558
return self._templating_enabled
559559

560+
def _enable_templating(self, *_):
561+
self.log.nosupport("self.enable_templating is replaced by self.templating_enabled. "
562+
"To disable it use the self.disable_templating context manager", '5.0')
563+
enable_templating = property(_enable_templating, _enable_templating)
564+
560565
@contextmanager
561566
def allow_unresolved_templates(self):
562567
"""Temporarily allow templates to be not (fully) resolved.

0 commit comments

Comments
 (0)