Skip to content

Commit 13087d3

Browse files
committed
improve lint
1 parent 6b13160 commit 13087d3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

templates/pool.xml.j2

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@
44
<pool type='{{ item.type }}'>
55
{% endif %}
66
<name>{{ item.name }}</name>
7-
{% if 'capacity' in item %}
7+
{% if 'capacity' in item %}
88
<capacity>{{ item.capacity }}</capacity>
9-
{% endif %}
10-
{% if item.type in ['logical', 'lvm2', 'zfs', 'rbd'] %}
9+
{% endif %}
10+
{% if item.type in ['logical', 'lvm2', 'zfs', 'rbd'] %}
1111
<source>
1212
<name>{{ item.source }}</name>
13-
{% if item.type in ['logical', 'lvm2'] %}
13+
{% if item.type in ['logical', 'lvm2'] %}
1414
<format type='lvm2'/>
15-
{% endif %}
16-
{% if item.type == 'rbd' %}
15+
{% endif %}
16+
{% if item.type == 'rbd' %}
1717
{% for host in item.hosts %}
1818
<host name='{{ host }}' />
1919
{% endfor %}
2020
<auth type='ceph' username='{{ item.username }}'>
2121
<secret usage='{{ item.name }}'/>
2222
</auth>
23-
{% endif %}
24-
</source>
2523
{% endif %}
26-
{% if item.type != 'zfs' %}
24+
</source>
25+
{% endif %}
26+
{% if item.type != 'zfs' %}
2727
<target>
2828
<path>{{ item.path | default('placeholder_value') }}</path>
2929
</target>
30-
{% endif %}
30+
{% endif %}
3131
</pool>

0 commit comments

Comments
 (0)