mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Removed the useless argument key
from dyndns_subscribe
This commit is contained in:
parent
7deb3b3492
commit
4f303de7a4
2 changed files with 17 additions and 25 deletions
|
@ -603,9 +603,6 @@ domain:
|
|||
help: Full domain to subscribe with
|
||||
extra:
|
||||
pattern: *pattern_domain
|
||||
-k:
|
||||
full: --key
|
||||
help: Public DNS key
|
||||
-p:
|
||||
full: --password
|
||||
nargs: "?"
|
||||
|
@ -1480,9 +1477,6 @@ dyndns:
|
|||
help: Full domain to subscribe with ( deprecated, use 'yunohost domain dyndns subscribe' instead )
|
||||
extra:
|
||||
pattern: *pattern_domain
|
||||
-k:
|
||||
full: --key
|
||||
help: Public DNS key
|
||||
-p:
|
||||
full: --password
|
||||
nargs: "?"
|
||||
|
|
|
@ -86,13 +86,12 @@ def _dyndns_available(domain):
|
|||
|
||||
|
||||
@is_unit_operation()
|
||||
def dyndns_subscribe(operation_logger, domain=None, key=None, password=None):
|
||||
def dyndns_subscribe(operation_logger, domain=None, password=None):
|
||||
"""
|
||||
Subscribe to a DynDNS service
|
||||
|
||||
Keyword argument:
|
||||
domain -- Full domain to subscribe with
|
||||
key -- TSIG Shared DNS key
|
||||
password -- Password that will be used to delete the domain
|
||||
"""
|
||||
|
||||
|
@ -133,7 +132,6 @@ def dyndns_subscribe(operation_logger, domain=None, key=None, password=None):
|
|||
# '1234' is idk? doesnt matter, but the old format contained a number here...
|
||||
key_file = f"/etc/yunohost/dyndns/K{domain}.+165+1234.key"
|
||||
|
||||
if key is None:
|
||||
if not os.path.exists("/etc/yunohost/dyndns"):
|
||||
os.makedirs("/etc/yunohost/dyndns")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue