Skip to content

Commit

Permalink
Refactor virtual_alias_maps template
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeto committed Mar 12, 2021
1 parent 06743f6 commit 4156850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/postfix/virtual
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ '#' }} virtual table for domain {{ item.domain }}
{% for entry in item.map|dictsort(by='key') %}
{{ entry[0] }}@{{ item.domain }} {{ entry[1] if entry[1] is string else (entry[1] | join(", ")) }}
{% for pattern, address in item.map.items() %}
{{ pattern }}@{{ item.domain }} {{ address if address is string else (address | join(", ")) }}
{% endfor %}

0 comments on commit 4156850

Please sign in to comment.