Merge pull request #4 from aboe76/master

Minor improvements
This commit is contained in:
David 2015-05-29 10:31:19 +02:00
commit d78e3510d6
2 changed files with 5 additions and 3 deletions

View File

@ -59,6 +59,7 @@ Salt Compatibility
Tested with:
* 2014.1.x
* 2015.5.x
OS Compatibility
================
@ -66,3 +67,4 @@ OS Compatibility
Tested with:
* CentOS 7
* Archlinux

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
{%- if 'short' in service %}<short>{{ service.short }}</short>{%- else %}<short>{{ name }}</short>{%- endif %}
{%- if 'description' in service %}<description>{{ service.description }}</description>{%- endif %}
<service version="1">
{% if 'short' in service %}<short>{{ service.short }}</short>{%- else %}<short>{{ name }}</short>{%- endif %}
{% if 'description' in service %}<description>{{ service.description }}</description>{%- endif %}
{%- if 'ports' in service %}
{%- if 'tcp' in service.ports %}
{%- for v in service.ports.tcp %}