Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-passive-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source
icinga-passive-client
Merge requests
!4
abort on http 5xx error
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
abort on http 5xx error
5127-detect-5xx-server-error
into
master
Overview
0
Commits
3
Pipelines
0
Changes
3
Merged
abort on http 5xx error
Hahn Axel (hahn)
requested to merge
5127-detect-5xx-server-error
into
master
Mar 4, 2022
Overview
0
Commits
3
Pipelines
0
Changes
3
TODO Check des Verhaltens, ob der Abbruch bei 500er wirklich gut tut.
Edited
Mar 14, 2022
by
Hahn Axel (hahn)
0
0
Merge request reports
Compare
master
version 2
3e934951
Mar 14, 2022
version 1
7144be7c
Mar 4, 2022
master (base)
and
version 1
latest version
f58801dd
3 commits,
Mar 14, 2022
version 2
3e934951
2 commits,
Mar 14, 2022
version 1
7144be7c
1 commit,
Mar 4, 2022
3 files
+
15
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
director-cli.sh
+
5
−
0
View file @ 7144be7c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -16,6 +16,7 @@
# ----------------------------------------------------------------------
# ah = axel.hahn@iml.unibe.ch
# 2022-02-16 v0.2 ah add --cfg param
# 2022-03-04 v0.3 ah abort on http 5xx error
# ======================================================================
tmpfile
=
/tmp/outcurl.tmp
@@ -365,6 +366,10 @@ typeset cfg_dryrun=false
if
[
${
_paramDryrun
}
=
false
]
;
then
_wd
">>>>>
$_paramAction
$_paramObj
[
${
_object_name
}
] >>
$_sMethod
$_sUrl
$_jsondata
"
http.makeRequest
"
$_sMethod
"
"
$_sUrl
"
"
$_jsondata
"
if
http.isServerError
>
/dev/null
;
then
echo
"CRITICAL ERROR: Director API request failed with a server error
$_sMethod
$_sUrl
"
exit
1
fi
if
[
$_bShowResponse
=
true
]
;
then
http.getResponseHeader
http.getResponse
Loading