From 39f4eb2aadfbb15185c3934fdabaf583c5762311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sat, 26 Mar 2016 10:29:52 +0100 Subject: [PATCH] [fix] Set found private key and don't validate it in dyndns_update --- lib/yunohost/dyndns.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/yunohost/dyndns.py b/lib/yunohost/dyndns.py index 6276849a..231954b8 100644 --- a/lib/yunohost/dyndns.py +++ b/lib/yunohost/dyndns.py @@ -168,6 +168,7 @@ def dyndns_update(dyn_host="dynhost.yunohost.org", domain=None, key=None, ip=Non raise MoulinetteError(errno.ENETUNREACH, m18n.n('no_internet_connection')) domain = _domain + key = path break if not domain: raise MoulinetteError(errno.EINVAL, @@ -178,7 +179,7 @@ def dyndns_update(dyn_host="dynhost.yunohost.org", domain=None, key=None, ip=Non '/etc/yunohost/dyndns/K{0}.+*.private'.format(domain)) if len(keys) > 0: key = keys[0] - if not key or not os.path.isfile(key): + if not key: raise MoulinetteError(errno.EIO, m18n.n('dyndns_key_not_found'))