From 848cb5529e80dc458de2be2dccb6d6660d58b15d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Wed, 27 Apr 2016 09:49:30 +0100 Subject: [PATCH] global_environment_variable is undefined while templating openstack_hosts role uses global_environment_variable for creating its environment.j2. If the variable is not defined the templating will fail. This should fix it. Change-Id: I891e99fd624589ee36d6ce4892c835fa5ece9671 --- templates/environment.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/environment.j2 b/templates/environment.j2 index 37f7bc76..75f706ce 100644 --- a/templates/environment.j2 +++ b/templates/environment.j2 @@ -1,10 +1,10 @@ # {{ ansible_managed }} PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" -{% if global_environment_variables %} +{% if global_environment_variables is defined %} {% for key, value in global_environment_variables.iteritems() %} {% if value %} {{ key }}={{ value }} {% endif %} {% endfor %} -{% endif %} \ No newline at end of file +{% endif %}