mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
autodns: Minor fix for error handling
This commit is contained in:
parent
499f06f5f6
commit
065ebec821
1 changed files with 1 additions and 1 deletions
|
@ -886,7 +886,7 @@ def domain_dns_push(operation_logger, domain, dry_run=False, force=False, purge=
|
||||||
_set_managed_dns_records_hashes(domain, new_managed_dns_records_hashes)
|
_set_managed_dns_records_hashes(domain, new_managed_dns_records_hashes)
|
||||||
|
|
||||||
# Everything succeeded
|
# Everything succeeded
|
||||||
if len(results["errors"]) == 0:
|
if len(results["errors"]) + len(results["warnings"]) == 0:
|
||||||
logger.success(m18n.n("domain_dns_push_success"))
|
logger.success(m18n.n("domain_dns_push_success"))
|
||||||
return {}
|
return {}
|
||||||
# Everything failed
|
# Everything failed
|
||||||
|
|
Loading…
Add table
Reference in a new issue