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

update creation check

parent a9d94a6e
No related branches found
No related tags found
1 merge request!40update creation check
......@@ -396,7 +396,7 @@ hostDefaultgroups="groups[]=iml groups[]=iml-server"
ObjAction create host
if [ -z "$(http.isOk)" ]; then
echo "ERROR, host was NOT created."
echo "ERROR $( http.getStatuscode ): host was NOT created."
else
echo "OK, host was created successfully."
fi
......@@ -507,11 +507,11 @@ hostDefaultgroups="groups[]=iml groups[]=iml-server"
# 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
echo "OK $_action service ${IDC_service__obj_name}"
return 0
else
echo "ERROR :/ $_action service ${IDC_service__obj_name}"
return 1
fi
}
......@@ -531,9 +531,9 @@ hostDefaultgroups="groups[]=iml groups[]=iml-server"
# if ObjAction create svclink; then
ObjAction create svclink
if [ -z "$(http.isOk)" ]; then
echo "OK: linked service ${checkName} on host [$MY_NAME] was created"
echo "ERROR $( http.getStatuscode ) :-/ unable to create linked service ${checkName} on host [$MY_NAME]"
else
echo "ERROR :-/ unable to create linked service ${checkName} on host [$MY_NAME]"
echo "OK: linked service ${checkName} on host [$MY_NAME] was created"
fi
else
echo "SKIP: linked service on host [${IDC_svcathost__obj_name}] exists"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment