Skip to content

Commit 71beb21

Browse files
committed
Cleaner syntax.
1 parent ad8130a commit 71beb21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/pool.xml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<pool type='{{ item.type }}'>
22
<name>{{ item.name }}</name>
3-
{% if item | selectattr('capacity', 'defined') | list %}
3+
{% if 'capacity' in item %}
44
<capacity>{{ item.capacity }}</capacity>
55
{% endif %}
66
<target>

0 commit comments

Comments
 (0)