Skip to content
Snippets Groups Projects
Commit e9e10924 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'director-cli-errorcode' into 'master'

update service creation

See merge request !41
parents 55e4ce75 41b6cd6b
No related branches found
No related tags found
1 merge request!41update service creation
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment