Removed the useless argument key from dyndns_subscribe

This commit is contained in:
theo@manjaro 2022-07-15 15:56:33 +02:00
parent 7deb3b3492
commit 4f303de7a4
2 changed files with 17 additions and 25 deletions

View file

@ -603,9 +603,6 @@ domain:
help: Full domain to subscribe with help: Full domain to subscribe with
extra: extra:
pattern: *pattern_domain pattern: *pattern_domain
-k:
full: --key
help: Public DNS key
-p: -p:
full: --password full: --password
nargs: "?" nargs: "?"
@ -1480,9 +1477,6 @@ dyndns:
help: Full domain to subscribe with ( deprecated, use 'yunohost domain dyndns subscribe' instead ) help: Full domain to subscribe with ( deprecated, use 'yunohost domain dyndns subscribe' instead )
extra: extra:
pattern: *pattern_domain pattern: *pattern_domain
-k:
full: --key
help: Public DNS key
-p: -p:
full: --password full: --password
nargs: "?" nargs: "?"

View file

@ -86,13 +86,12 @@ def _dyndns_available(domain):
@is_unit_operation() @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 Subscribe to a DynDNS service
Keyword argument: Keyword argument:
domain -- Full domain to subscribe with domain -- Full domain to subscribe with
key -- TSIG Shared DNS key
password -- Password that will be used to delete the domain 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... # '1234' is idk? doesnt matter, but the old format contained a number here...
key_file = f"/etc/yunohost/dyndns/K{domain}.+165+1234.key" key_file = f"/etc/yunohost/dyndns/K{domain}.+165+1234.key"
if key is None:
if not os.path.exists("/etc/yunohost/dyndns"): if not os.path.exists("/etc/yunohost/dyndns"):
os.makedirs("/etc/yunohost/dyndns") os.makedirs("/etc/yunohost/dyndns")