From dc3bbf58dd70e3430a05022bdb65253ee070770a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= <cedric.dsm@tiolive.com>
Date: Tue, 30 Jul 2013 15:41:56 +0000
Subject: [PATCH] Resilient: experimental: Backward compatibility.

---
 stack/resilient/template-replicated.cfg.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/stack/resilient/template-replicated.cfg.in b/stack/resilient/template-replicated.cfg.in
index ee5de6e72..dd58d5e05 100644
--- a/stack/resilient/template-replicated.cfg.in
+++ b/stack/resilient/template-replicated.cfg.in
@@ -21,16 +21,19 @@ return = ssh-public-key ssh-url notification-id ip
 config =
 # Resilient related parameters
   number authorized-key notify ip-list namebase
+{% if slapparameter_dict is defined %}
 # Software Instance related parameters
   {% for parameter_name in slapparameter_dict.keys() %}{{parameter_name}} {% endfor %}
+{% endif %}
 config-number = 0
 config-authorized-key = {% for id in range(1,nbbackup|int) %} ${request-pbs-{{namebase}}-{{id}}:connection-ssh-key}{% endfor %}
 config-notify = {% for id in range(1,nbbackup|int) %} ${request-pbs-{{namebase}}-{{id}}:connection-notification-url}{% endfor %}
 config-ip-list =
 # Bubble up all the instance parameters to the requested export instance.
+{% if slapparameter_dict is defined %}
 {% for parameter_name, parameter_value in slapparameter_dict.items() %}config-{{parameter_name}} = {{parameter_value}}
 {% endfor %}
-
+{% endif %}
 
 {% for id in range(1,nbbackup|int) %}
 
-- 
2.30.9