Commit 6b7db229 authored by wout's avatar wout
Browse files

Catch the situation when the TXT record is updated with the same value

parent 8adb8a69
...@@ -53,6 +53,9 @@ dns_constellix_add() { ...@@ -53,6 +53,9 @@ dns_constellix_add() {
if printf -- "%s" "$response" | grep "{\"success\":\"Record.*updated successfully\"}" >/dev/null; then if printf -- "%s" "$response" | grep "{\"success\":\"Record.*updated successfully\"}" >/dev/null; then
_info "Updated" _info "Updated"
return 0 return 0
elif printf -- "%s" "$response" | grep "{\"errors\":\[\"Contents are identical\"\]}" >/dev/null; then
_info "Already exists, no need to update"
return 0
else else
_err "Error updating TXT record" _err "Error updating TXT record"
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment