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: Tested with:
* 2014.1.x * 2014.1.x
* 2015.5.x
OS Compatibility OS Compatibility
================ ================
@ -66,3 +67,4 @@ OS Compatibility
Tested with: Tested with:
* CentOS 7 * CentOS 7
* Archlinux

View File

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