aboutsummaryrefslogtreecommitdiffstats
path: root/dbc-client
diff options
context:
space:
mode:
Diffstat (limited to 'dbc-client')
-rw-r--r--dbc-client/misc/dbc-client4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbc-client/misc/dbc-client b/dbc-client/misc/dbc-client
index a7317fa..8df970c 100644
--- a/dbc-client/misc/dbc-client
+++ b/dbc-client/misc/dbc-client
@@ -91,9 +91,9 @@ dopost() {
loop=true
- while [ $loop ]
+ while [ $loop = true ]
do
- rc=`curl -v -X POST -w "%{http_code}" -H "X-ECOMP-RequestID: $REQUESTID" -H "Content-Type: application/json" -d @${1} ${PROTO}://${DBC}:${PORT}/webapi/${2}`
+ rc=`curl -s -X POST -w "%{http_code}" -H "X-ECOMP-RequestID: $REQUESTID" -H "Content-Type: application/json" -d @${1} ${PROTO}://${DBC}:${PORT}/webapi/${2} -o /dev/null`
case $rc in
200 | 201 | 409 )
echo "response=$rc"