From 41b6cd6b8199b67d81de7521bfd76f75d8d9838d Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Tue, 26 Mar 2024 16:54:36 +0100 Subject: [PATCH] update service creation --- director-cli.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/director-cli.sh b/director-cli.sh index dd3963d..2dce120 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 } -- GitLab