mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] Fixes on 'ttl' option.
This commit is contained in:
parent
5016482bda
commit
3f1bd53c47
2 changed files with 5 additions and 5 deletions
|
@ -302,9 +302,9 @@ domain:
|
|||
arguments:
|
||||
domain:
|
||||
help: Target domain
|
||||
-ttl:
|
||||
full: --time-to-live
|
||||
help: Time to live in secound before DNS servers update this information. Without this option, ttl is set to 3600s, one hour.
|
||||
-t:
|
||||
full: --ttl
|
||||
help: Time To Live (TTL) is second before DNS servers update. Default is 3600 second (i.e. 1 hour).
|
||||
extra:
|
||||
pattern: &pattern_ttl
|
||||
- !!str ^[0-9]+$
|
||||
|
|
|
@ -220,7 +220,7 @@ def domain_remove(auth, domain, force=False):
|
|||
msignals.display(m18n.n('domain_deleted'), 'success')
|
||||
|
||||
|
||||
def domain_dns_conf(domain, time_to_live):
|
||||
def domain_dns_conf(domain, ttl):
|
||||
"""
|
||||
Generate DNS configuration for a domain
|
||||
|
||||
|
@ -229,7 +229,7 @@ def domain_dns_conf(domain, time_to_live):
|
|||
time to live -- Time to live
|
||||
"""
|
||||
|
||||
ttl = 3600 if time_to_live is None else time_to_live
|
||||
ttl = 3600 if ttl is None else ttl
|
||||
|
||||
ip4 = urlopen("http://ip.yunohost.org").read().strip()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue