File tree 1 file changed +2
-11
lines changed
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 1
1
{%- from "postfix/map.jinja" import postfix with context -%}
2
2
{%- set config = salt['pillar.get']('postfix:config', {}) -%}
3
3
4
- {%- if not salt['pillar.get']('postfix:mapping', False) %}
5
- {#- Let the user configure mapping manually. -#}
6
- {%- set processed_parameters = [] %}
7
- {%- else -%}
8
- {#- TODO: alias_maps probably belongs here, too: #}
9
- {%- set processed_parameters = [
10
- 'virtual_alias_maps',
11
- 'smtp_sasl_password_maps',
12
- 'sender_canonical_maps',
13
- ] %}
14
- {%- endif -%}
4
+ {#- " | list": Python3.6 retuns dict_keys here, which needs to be converted into a list here. -#}
5
+ {%- set processed_parameters = salt['pillar.get']('postfix:mapping', {}).keys() | list %}
15
6
16
7
{%- macro set_parameter(parameter, default=None) -%}
17
8
{% set value = config.get(parameter, default) %}
You can’t perform that action at this time.
0 commit comments