diff --git a/tests/generate-mio-config.sh b/tests/generate-mio-config.sh
index a20deb46b0f5310f2fa93e3186e0f757e671f42e..044a42269d786950cef33572a2ad5fd228f031c7 100755
--- a/tests/generate-mio-config.sh
+++ b/tests/generate-mio-config.sh
@@ -18,7 +18,7 @@ else
 	MERO_HA_IP=`hctl mero status | grep -2 CST_HA|grep -2 "$HOSTNAME" |head -2|tail -1|sed -e 's/^.*\[[^]]\+] [^ ]\+:[^ ]\+ \+\([^ ]\+\).*$/\1/'`
 	# find the part of the local clovis service address that we stick our mero-id onto
 	CLOVIS_IP=`hctl mero status | grep -A10 "$HOSTNAME" |grep -A1 CST_RMS|grep -v CST_RMS|head -1|sed -e 's/^.*\[[^]]\+] [^ ]\+:[^ ]\+ \+\([^ ]\+\).*$/\1/' | sed -e 's/\(.*\):[0-9]\+ $/\1:$1/'`
-endif
+fi
 
 
 cat >mio-config.yaml <<EOF