Demacro
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
{% macro logging(logging) %}
|
||||
logging {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{% for category in logging.categories if logging.categories is defined and logging.categories %}
|
||||
{% for category in item.logging.categories if item.logging.categories is defined and item.logging.categories %}
|
||||
category {{ category.name }} {
|
||||
{{ functions.simple_item_list(category.channels) }}};
|
||||
{% endfor %}
|
||||
{% for channel in logging.channels if logging.channels is defined and logging.channels %}
|
||||
{% for channel in item.logging.channels if item.logging.channels is defined and item.logging.channels %}
|
||||
channel {{ channel.name }} {
|
||||
{% filter indent(bind9_config_indent, true) %}
|
||||
{% if channel.file is defined and channel.file %}
|
||||
@@ -26,4 +25,3 @@ file "{{ channel.file.name }}"
|
||||
};
|
||||
{% endfor %}
|
||||
{% endfilter %}};
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user