From 0464541dae6659a91378094c2c9c601c9e4a635d Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Fri, 2 Oct 2015 16:58:58 +0100 Subject: [PATCH] Fix bashate violations Change-Id: I31486f7f8de5a410de2847ee1ecfc44ac75bce28 --- templates/neutron_ha_tool.sh.j2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/neutron_ha_tool.sh.j2 b/templates/neutron_ha_tool.sh.j2 index c8d5c68b..96ab1583 100644 --- a/templates/neutron_ha_tool.sh.j2 +++ b/templates/neutron_ha_tool.sh.j2 @@ -21,25 +21,25 @@ LOCKFILE="/var/run/neutron_ha_tool.lock" # Trap any errors that might happen in executing the script trap my_trap_handler ERR -function my_trap_handler() { +function my_trap_handler { kill_job } -function unlock() { +function unlock { rm "${LOCKFILE}" } -function do_job() { +function do_job { # Do a given job logger "$({{ do_job }})" } -function cooldown() { +function cooldown { # Sleep for a given amount of time sleep {{ sleep_time }} } -function kill_job() { +function kill_job { # If the job needs killing kill the pid and unlock the file. PID="$(cat ${LOCKFILE})" unlock