From 5bdf26e2224507e2b4c0234382bb550359c5d4c0 Mon Sep 17 00:00:00 2001
From: Julien Leduc <julien.leduc@cern.ch>
Date: Thu, 18 Jan 2018 17:04:58 +0100
Subject: [PATCH] removing replace-str option as -L just concatenates args
 after the replace-str place holder. toto is not a valid rados object which
 prevents the objectstore cleanup.

---
 .../docker/ctafrontend/cc7/opt/run/bin/init.sh                  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init.sh
index 123badc211..ae05209981 100755
--- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init.sh
+++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/init.sh
@@ -34,7 +34,7 @@ if [ "$KEEP_OBJECTSTORE" == "0" ]; then
   else
     if [[ $(rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE ls | wc -l) -gt 0 ]]; then
       echo "Rados objectstore ${OBJECTSTOREURL} is not empty: deleting content"
-      rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE ls | xargs -itoto -L 100 -P 100 rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE rm toto
+      rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE ls | xargs -L 100 -P 100 rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE rm 
     fi
     cta-objectstore-initialize $OBJECTSTOREURL
     echo "Rados objectstore ${OBJECTSTOREURL} content:"
-- 
GitLab