-
-
Save anonymous/b835f8008aa988ab2e84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings: | |
- foo | |
- bar | |
- baz: /opt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- macro build_configure_options_from_settings(settings) -%} | |
{%- set output = [] -%} | |
{%- for item in settings['configure'] -%} | |
{%- if item is mapping -%} | |
{%- set output = output.extend(["--" + (item | join('='))]) -%} | |
{%- else -%} | |
{%- set output = output.extend(["--" + item]) -%} | |
{%- endif -%} | |
{%- endfor -%} | |
{{ output | join(' ') }} | |
{%- endmacro -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jinja variable 'None' has no attribute 'extend' | |
[...] | |
{%- for item in settings['configure'] -%} | |
{%- if item is mapping -%} | |
{%- set output = output.extend(["--" + (item | join('='))]) -%} | |
{%- else -%} | |
{%- set output = output.extend(["--" + item]) -%} <====================== | |
{%- endif -%} | |
{%- endfor -%} | |
{{ output | join(' ') }} | |
[...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment