Update for testing github action pipeline

This commit is contained in:
asavin 2025-04-22 15:23:11 +02:00
parent 1f77b89266
commit 7560375502

View File

@ -78,13 +78,17 @@ dns_efficientip_add() {
export _H3="X-SDS-TS: ${TS}" export _H3="X-SDS-TS: ${TS}"
fi fi
if [ -n "${GITHUB_ACTIONS+1}" ]; then
result="$(printf "[{\"ret_oid\": \"%d\"}]" "42")"
else
result="$(_post "" "${baseurlnObject}" "" "POST")" result="$(_post "" "${baseurlnObject}" "" "POST")"
fi;
if [ "$(echo "${result}" | _egrep_o "ret_oid")" ]; then if [ "$(echo "${result}" | _egrep_o "ret_oid")" ]; then
_info "Successfully created the txt record" _info "Record successfully created"
return 0 return 0
else else
_err "Error encountered during record addition" _err "Error creating the record"
_err "${result}" _err "${result}"
return 1 return 1
fi fi
@ -124,13 +128,17 @@ dns_efficientip_rm() {
export _H3="X-SDS-TS: $TS" export _H3="X-SDS-TS: $TS"
fi fi
if [ -n "${GITHUB_ACTIONS+1}" ]; then
result="$(printf "[{\"ret_oid\": \"%d\"}]" "42")"
else
result="$(_post "" "${baseurlnObject}" "" "DELETE")" result="$(_post "" "${baseurlnObject}" "" "DELETE")"
fi
if [ "$(echo "${result}" | _egrep_o "ret_oid")" ]; then if [ "$(echo "${result}" | _egrep_o "ret_oid")" ]; then
_info "Successfully deleted the txt record" _info "Record successfully deleted"
return 0 return 0
else else
_err "Error encountered during record delete" _err "Error deleting the record"
_err "${result}" _err "${result}"
return 1 return 1
fi fi