[mod] constant needs to be upper cases

This commit is contained in:
Laurent Peuch 2017-09-18 21:17:13 +02:00
parent 0dbec4fa62
commit 0fc80b256b

View file

@ -63,7 +63,7 @@ class IPRouteLine(object):
for k, v in self.m.groupdict().items(): for k, v in self.m.groupdict().items():
setattr(self, k, v) setattr(self, k, v)
re_dyndns_private_key = re.compile( RE_DYNDNS_PRIVATE_KEY = re.compile(
r'.*/K(?P<domain>[^\s\+]+)\.\+157.+\.private$' r'.*/K(?P<domain>[^\s\+]+)\.\+157.+\.private$'
) )
@ -176,7 +176,7 @@ def dyndns_update(dyn_host="dyndns.yunohost.org", domain=None, key=None,
if domain is None: if domain is None:
# Retrieve the first registered domain # Retrieve the first registered domain
for path in glob.iglob('/etc/yunohost/dyndns/K*.private'): 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: if not match:
continue continue
_domain = match.group('domain') _domain = match.group('domain')