From 0fc80b256bc38fb244a70e7364a2400360424e68 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 18 Sep 2017 21:17:13 +0200 Subject: [PATCH] [mod] constant needs to be upper cases --- src/yunohost/dyndns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yunohost/dyndns.py b/src/yunohost/dyndns.py index 621043c3e..7bbf5e568 100644 --- a/src/yunohost/dyndns.py +++ b/src/yunohost/dyndns.py @@ -63,7 +63,7 @@ class IPRouteLine(object): for k, v in self.m.groupdict().items(): setattr(self, k, v) -re_dyndns_private_key = re.compile( +RE_DYNDNS_PRIVATE_KEY = re.compile( r'.*/K(?P[^\s\+]+)\.\+157.+\.private$' ) @@ -176,7 +176,7 @@ def dyndns_update(dyn_host="dyndns.yunohost.org", domain=None, key=None, if domain is None: # Retrieve the first registered domain for path in glob.iglob('/etc/yunohost/dyndns/K*.private'): - match = re_dyndns_private_key.match(path) + match = RE_DYNDNS_PRIVATE_KEY.match(path) if not match: continue _domain = match.group('domain')