diff --git a/director-cli.sh b/director-cli.sh
index dd3963d2857e320c5e21a7ab867e612f0a35f95d..2dce120eaaf9c5c968bb82a5c880ccad583d27b4 100755
--- a/director-cli.sh
+++ b/director-cli.sh
@@ -504,14 +504,12 @@ hostDefaultgroups="groups[]=iml groups[]=iml-server"
       _action=update
     fi
 
-    # if ObjAction $_action service; then
-    ObjAction $_action service
-    if [ -z "$(http.isOk)" ]; then
-      echo "ERROR $(  http.getStatuscode ) :/ $_action service ${IDC_service__obj_name}"
-      return 1
-    else
+    if ObjAction $_action service; then
       echo "OK $_action service ${IDC_service__obj_name}"
       return 0
+    else
+      echo "ERROR $(  http.getStatuscode ) :/ $_action service ${IDC_service__obj_name}"
+      return 1
     fi
   }