Make name optional

This commit is contained in:
Daniel Akulenok
2022-10-04 12:53:45 +02:00
parent 28310f7755
commit 2870e14941

View File

@@ -29,7 +29,7 @@ update-policy {
{{ policy.permission -}} {{ policy.permission -}}
{{ ' ' + policy.identity -}} {{ ' ' + policy.identity -}}
{{ ' ' + policy.ruletype -}} {{ ' ' + policy.ruletype -}}
{{ ' ' + policy.name -}} {{ ' ' + policy.name if policy.name is defined -}}
{{ ' ' + policy.types -}}; {{ ' ' + policy.types -}};
{% endfor %} {% endfor %}
{% endfilter %}}; {% endfilter %}};