Skip to content

Commit 204efe5

Browse files
committed
style(zone.xml): remove all trailing whitespaces
1 parent d8f0f47 commit 204efe5

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

firewalld/files/zone.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,65 +9,65 @@
99
<rule family="{{ rule.family }}">
1010
{%- else %}
1111
<rule>
12-
{%- endif %}
12+
{%- endif %}
1313
{%- if 'ipset' in rule %}
1414
<source ipset="{{ rule.ipset.name }}" />
1515
{%- endif %}
1616
{%- if 'source' in rule %}
1717
<source address="{{ rule.source.address }}" {%- if 'invert' in rule.source %}invert="{{ rule.source.invert }}"{%- endif %} />
18-
{%- endif %}
18+
{%- endif %}
1919
{%- if 'destination' in rule %}
2020
<destination address="{{ rule.destination.address }}" {%- if 'invert' in rule.destination %}invert="{{ rule.destination.invert }}"{%- endif %} />
21-
{%- endif %}
21+
{%- endif %}
2222
{%- if 'service' in rule %}
2323
<service name="{{ rule.service }}" />
24-
{%- endif %}
24+
{%- endif %}
2525
{%- if 'port' in rule %}
2626
<port port="{{ rule.port.portid }}" protocol="{{ rule.port.protocol }}" />
27-
{%- endif %}
27+
{%- endif %}
2828
{%- if 'protocol' in rule %}
2929
<protocol value="{{ rule.protocol }}" />
30-
{%- endif %}
30+
{%- endif %}
3131
{%- if 'icmp_block' in rule %}
3232
<icmp-block name="{{ rule.icmp_block }}" />
33-
{%- endif %}
33+
{%- endif %}
3434
{%- if 'icmp_type' in rule %}
3535
<icmp-type name="{{ rule.icmp_type }}" />
36-
{%- endif %}
36+
{%- endif %}
3737
{%- if 'masquerade' in rule %}
3838
{%- if rule.masquerade %}<masquerade/>{%- endif %}
39-
{%- endif %}
39+
{%- endif %}
4040
{%- if 'forward_port' in rule %}
4141
{%- if 'comment' in rule.forward_port %}
4242
<!-- {{ rule.forward_port.comment }} -->
4343
{%- endif %}
4444
<forward-port port="{{ rule.forward_port.portid }}" protocol="{{ rule.forward_port.protocol }}"{%- if 'to_port' in rule.forward_port %} to-port="{{ rule.forward_port.to_port }}"{%- endif %}{%- if 'to_addr' in rule.forward_port %} to-addr="{{ rule.forward_port.to_addr }}"{%- endif %} />
45-
{%- endif %}
45+
{%- endif %}
4646
{%- if 'source_port' in rule %}
4747
{%- if 'comment' in rule.source_port %}
4848
<!-- {{ rule.source_port.comment }} -->
4949
{%- endif %}
5050
<source-port port="{{ rule.source_port.portid }}" protocol="{{ rule.source_port.protocol }}"{%- if 'to_port' in rule.source_port %} to-port="{{ rule.source_port.to_port }}"{%- endif %}{%- if 'to_addr' in rule.source_port %} to-addr="{{ rule.source_port.to_addr }}"{%- endif %} />
51-
{%- endif %}
51+
{%- endif %}
5252
{%- if 'log' in rule %}
5353
<log{%- if 'prefix' in rule.log %} prefix="{{ rule.log.prefix }}"{%- endif %}{%- if 'level' in rule.log %} level="{{ rule.log.level }}"{%- endif %}>
5454
{%- if 'limit' in rule.log %}
5555
<limit value="{{ rule.log.limit }}"/>
5656
{%- endif %}
5757
</log>
58-
{%- endif %}
58+
{%- endif %}
5959
{%- if 'audit' in rule %}
6060
<audit>{%- if 'limit' in rule.audit %} <limit value="{{ rule.audit.limit }}"/>{%- endif %}</audit>
61-
{%- endif %}
61+
{%- endif %}
6262
{%- if 'accept' in rule %}
6363
<accept/>
6464
{%- endif %}
6565
{%- if 'reject' in rule %}
6666
<reject{%- if 'type' in rule.reject %} type="{{ rule.reject.type }}"{%- endif %} />
67-
{%- endif %}
67+
{%- endif %}
6868
{%- if 'drop' in rule %}
6969
<drop/>
70-
{%- endif %}
70+
{%- endif %}
7171
</rule>
7272
{%- endmacro %}
7373
<zone{%- if 'target' in zone %} target="{{ zone.target }}"{%- endif %}>

0 commit comments

Comments
 (0)