Skip to content

templating must be disabled when parsing dependencies in EasyConfig.parse#2566

Merged
akesandgren merged 2 commits intoeasybuilders:developfrom
boegel:fix_parse_templating_deps
Sep 6, 2018
Merged

templating must be disabled when parsing dependencies in EasyConfig.parse#2566
akesandgren merged 2 commits intoeasybuilders:developfrom
boegel:fix_parse_templating_deps

Conversation

@boegel
Copy link
Member

@boegel boegel commented Sep 6, 2018

fix for problem introduced in #2562 (cc @akesandgren)

Before the changes in #2562, it was OK that templating was enabled when _parse_dependency was called, because the templating only occurs when easyconfig parameters are fetched via self (using self[key), i.e. the EasyConfig instance. When the easyconfig parameters are fetching via local_vars[key] there is no templating since local_vars is a regular dict value...

also fixes easybuilders/easybuild-easyconfigs#6818

@akesandgren
Copy link
Contributor

Ah, should have thought of that before...

Copy link
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@akesandgren
Copy link
Contributor

Going in, thanks @boegel

@akesandgren akesandgren merged commit e22c97b into easybuilders:develop Sep 6, 2018
@boegel boegel deleted the fix_parse_templating_deps branch September 6, 2018 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants