Skip to content

Commit

Permalink
Allow unresolved templates in asdict
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Aug 4, 2022
1 parent 05b5a2b commit 7de379a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easybuild/framework/easyconfig/easyconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,8 @@ def asdict(self):
if self.enable_templating:
if not self.template_values:
self.generate_template_values()
value = resolve_template(value, self.template_values)
# Not all values can be resolved, e.g. %(installdir)s
value = resolve_template(value, self.template_values, expect_resolved=False)
res[key] = value
return res

Expand Down

0 comments on commit 7de379a

Please sign in to comment.