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

Merge branch 'simple-task/7546-icinga-check-für-ablaufende-gitlab-tokens' into 'master'

use ph.abort on missing requirements

See merge request !279
parents 88619a73 c1cd9347
Branches
No related tags found
1 merge request!279use ph.abort on missing requirements
...@@ -194,9 +194,9 @@ GITLAB_CONFIG=$( ph.getValueWithParam $GITLAB_CONFIG g "$@") ...@@ -194,9 +194,9 @@ GITLAB_CONFIG=$( ph.getValueWithParam $GITLAB_CONFIG g "$@")
# --- check requirements # --- check requirements
ph.require curl ph.require curl
. "${GITLAB_CONFIG}" || exit 1 . "${GITLAB_CONFIG}" || ph.abort "UNKNOWN: Could not read gitlab config $GITLAB_CONFIG"
. "${REST_CLIENT}" || exit 1 . "${REST_CLIENT}" || ph.abort "UNKNOWN: Could not read $REST_CLIENT"
http.help >/dev/null || exit 1 http.help >/dev/null || ph.abort "UNKNOWN: http functions not available. Check -r $REST_CLIENT."
iWarnLimit=$( ph.getValueWithParam $iWarnLimit w "$@") iWarnLimit=$( ph.getValueWithParam $iWarnLimit w "$@")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment