From 94bec3e041caccd5ec12a6b9dfb93c988067c1c1 Mon Sep 17 00:00:00 2001 From: Karl Goetz Date: Thu, 9 Mar 2017 21:56:26 +1100 Subject: [PATCH] Update contacts template Contacts have no 'use' so that part is deadwood and can go --- templates/contacts.cfg.tmpl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/templates/contacts.cfg.tmpl b/templates/contacts.cfg.tmpl index cb038e4..e04896b 100644 --- a/templates/contacts.cfg.tmpl +++ b/templates/contacts.cfg.tmpl @@ -3,20 +3,14 @@ define contact{ {# loop through all key:value pairs and print out the results #} {% for key, value in item.iteritems() %} - {% if key == 'use' %} - {% if key is defined %} - {{ key }} {{ value }} - {% else %} - {{ key }} generic-contact - {% endif %} - {% elif key == 'contact_name' %} + {% if key == 'contact_name' %} {% if key is defined %} {{ key }} {{ value }} {% else %} {{ key }} {{ value |mandatory }} {% endif %} {% else %} - {# Guess none of the special cases apply here #} + {# Special case doesn't apply here #} {{ key }} {{ value }} {% endif %} {% endfor %}