File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,10 @@ policy-spf_time_limit = {{ policyd_spf.get('time_limit', '3600s') }}
120120
121121{%- for mapping, data in salt['pillar.get']('postfix:mapping', {}).items() %}
122122 {%- set file_path = salt['pillar.get']('postfix:config:' ~ mapping) %}
123- {%- if ':' in file_path %}
123+ {%- if file_path.startswith('proxy:') %}
124+ {#- Discard the proxy:-prefix #}
125+ {%- set _, file_type, file_path = file_path.split(':') %}
126+ {%- elif ':' in file_path %}
124127 {%- set file_type, file_path = file_path.split(':') %}
125128 {%- else %}
126129 {%- set file_type = default_database_type %}
Original file line number Diff line number Diff line change @@ -76,7 +76,10 @@ postfix_alias_absent_{{ user }}:
7676{% for mapping, data in salt[' pillar.get' ](' postfix:mapping' , {}).items() % }
7777 {%- set need_postmap = False % }
7878 {%- set file_path = salt[' pillar.get' ](' postfix:config:' ~ mapping) % }
79- {%- if ' :' in file_path % }
79+ {%- if file_path.startswith(' proxy:' ) % }
80+ {# - Discard the proxy:-prefix #}
81+ {%- set _, file_type, file_path = file_path.split(' :' ) % }
82+ {%- elif ' :' in file_path % }
8083 {%- set file_type, file_path = file_path.split(' :' ) % }
8184 {%- else % }
8285 {%- set file_type = default_database_type % }
You can’t perform that action at this time.
0 commit comments