Skip to content

Commit 217d359

Browse files
committed
main.cf: ignore only actually used keys of 'postfix:mapping'; fixes saltstack-formulas#89
1 parent c432ae2 commit 217d359

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

postfix/files/main.cf

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
{%- from "postfix/map.jinja" import postfix with context -%}
22
{%- set config = salt['pillar.get']('postfix:config', {}) -%}
33

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+
{%- set processed_parameters = salt['pillar.get']('postfix:mapping', {}).keys() | list %}
155

166
{%- macro set_parameter(parameter, default=None) -%}
177
{% set value = config.get(parameter, default) %}

0 commit comments

Comments
 (0)