yandex: Don't treat an error as success

This commit is contained in:
Richard Hansen 2024-07-21 03:58:59 -04:00
parent 58c6caa5ff
commit f807ba58ac
2 changed files with 4 additions and 3 deletions

View file

@ -138,6 +138,8 @@ repository history](https://github.com/ddclient/ddclient/commits/master).
web-based IP discovery service (`--usev4=webv4`, `--usev6=webv6`) or from a
router/firewall device.
[#719](https://github.com/ddclient/ddclient/pull/719)
* `yandex`: Errors are now retried.
[#719](https://github.com/ddclient/ddclient/pull/719)
## 2023-11-23 v3.11.2

View file

@ -6298,13 +6298,12 @@ sub nic_yandex_update {
$response = eval { decode_json($reply) };
if ($response->{success} eq 'error') {
failed("%s", $response->{error});
} else {
success("%s -- Updated Successfully to %s", $host, $ip);
next;
}
$config{$host}{'ip'} = $ip;
$config{$host}{'mtime'} = $now;
$config{$host}{'status'} = 'good';
success("%s -- Updated Successfully to %s", $host, $ip);
}
}