Added FATAL_FAILURE to log_helpers. Do not send to APIS in case of FATAL_FAILURE.
This commit is contained in:
@@ -13,6 +13,8 @@ trap collect_current_configuration EXIT
|
||||
collect_current_configuration () {
|
||||
local func="${FUNCNAME[0]}"
|
||||
|
||||
$FATAL_FAILURE && return 1
|
||||
|
||||
# TODO: eventuell muss die version neu berechnet werden
|
||||
current_settings_to_ismas
|
||||
|
||||
@@ -28,15 +30,7 @@ collect_current_configuration () {
|
||||
#done
|
||||
}
|
||||
|
||||
update_psa() { # calling with a parameter is used for testing
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
if ! updates_available; then # check for false alarm
|
||||
update_psa_false_alarm "update requested, but no WAIT state detected"
|
||||
exit $EXITCODE
|
||||
fi
|
||||
fi
|
||||
|
||||
update_psa() {
|
||||
update_psa_activated # message to ISMAS
|
||||
|
||||
local func="${FUNCNAME[0]}"
|
||||
|
Reference in New Issue
Block a user