From 136e02a61cfc0e6dfcfacf94cd1be981c753ca9d Mon Sep 17 00:00:00 2001 From: Florian Ermisch Date: Thu, 24 Aug 2017 12:52:06 +0200 Subject: [PATCH] check for absolute `file_path`s for maps --- postfix/init.sls | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postfix/init.sls b/postfix/init.sls index b428ef3..0b1d4c8 100644 --- a/postfix/init.sls +++ b/postfix/init.sls @@ -72,6 +72,9 @@ postfix_alias_absent_{{ user }}: {%- else %} {%- set file_type = default_database_type %} {%- endif %} + {%- if not file_path.startswith('/') %} + {%- set file_path = postfix.config_path ~ '/' ~ file_path %} + {%- endif %} {%- if file_type in ("btree", "cdb", "dbm", "hash", "sdbm") %} {%- set need_postmap = True %} {%- endif %}