mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Log dyndns update only if we really update something (#591)
This commit is contained in:
parent
e918836ab0
commit
c9fec565b5
1 changed files with 2 additions and 3 deletions
|
@ -206,9 +206,6 @@ def dyndns_update(operation_logger, dyn_host="dyndns.yunohost.org", domain=None,
|
||||||
|
|
||||||
key = keys[0]
|
key = keys[0]
|
||||||
|
|
||||||
operation_logger.related_to.append(('domain', domain))
|
|
||||||
operation_logger.start()
|
|
||||||
|
|
||||||
# This mean that hmac-md5 is used
|
# This mean that hmac-md5 is used
|
||||||
# (Re?)Trigger the migration to sha256 and return immediately.
|
# (Re?)Trigger the migration to sha256 and return immediately.
|
||||||
# The actual update will be done in next run.
|
# The actual update will be done in next run.
|
||||||
|
@ -258,6 +255,8 @@ def dyndns_update(operation_logger, dyn_host="dyndns.yunohost.org", domain=None,
|
||||||
logger.info("No updated needed.")
|
logger.info("No updated needed.")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
operation_logger.related_to.append(('domain', domain))
|
||||||
|
operation_logger.start()
|
||||||
logger.info("Updated needed, going on...")
|
logger.info("Updated needed, going on...")
|
||||||
|
|
||||||
dns_conf = _build_dns_conf(domain)
|
dns_conf = _build_dns_conf(domain)
|
||||||
|
|
Loading…
Add table
Reference in a new issue