Skip to content

Commit bb39d06

Browse files
committed
fix(dyndns): suppress api response output in create/update record
- Remove JSON response output from api_call in create_record() - Remove JSON response output from api_call in update_record() - Redirect api_call output to /dev/null - Keeps debug logging intact but eliminates unwanted JSON display
1 parent bf383f0 commit bb39d06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dyndns.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ EOF
281281

282282
log DEBUG "Payload (formatted): $(echo "$payload" | jq -c .)"
283283

284-
api_call POST "/zones/$zone_id/rrsets" "$payload" || return 1
284+
api_call POST "/zones/$zone_id/rrsets" "$payload" > /dev/null || return 1
285285
}
286286

287287
# Aktualisiere einen bestehenden Record
@@ -308,7 +308,7 @@ EOF
308308

309309
log DEBUG "Payload (formatted): $(echo "$payload" | jq -c .)"
310310

311-
api_call PUT "/zones/$zone_id/rrsets/$record_name/$record_type" "$payload" || return 1
311+
api_call PUT "/zones/$zone_id/rrsets/$record_name/$record_type" "$payload" > /dev/null || return 1
312312
}
313313

314314
# Zeige Hilfe

0 commit comments

Comments
 (0)