From 113077d2ae975bf724fc89f89fcdb9bef2174b3b Mon Sep 17 00:00:00 2001
From: Thomas Herve <thomas.herve@enovance.com>
Date: Wed, 23 Apr 2014 17:20:56 +0200
Subject: [PATCH] Fix gate-heat-templates-dsvm shell script

The shell script was originally written as a template but is not
anymore, so it fails with a syntax error trying to launch the post test
hook. The patch removes the additionals braces.

Change-Id: I494979bee7545f88308416824c0ea07bee87e54d
---
 .../files/jenkins_job_builder/config/heat.yaml                | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml b/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml
index 094034d71c..832c13f046 100644
--- a/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml
+++ b/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml
@@ -19,10 +19,10 @@
           export DEVSTACK_GATE_TEMPEST=0
           export DEVSTACK_GATE_EXERCISES=0
           export PROJECTS="openstack/heat-templates $PROJECTS"
-          function post_test_hook {{
+          function post_test_hook {
               source $BASE/new/devstack/openrc && \
               python $BASE/new/heat-templates/tools/validate-templates $BASE/new/heat-templates
-          }}
+          }
           export -f post_test_hook
           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
           ./safe-devstack-vm-gate-wrap.sh