mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] constants in capslock
This commit is contained in:
parent
f942623e16
commit
69f2705b13
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ from yunohost.domain import get_public_ip
|
||||||
logger = getActionLogger('yunohost.dyndns')
|
logger = getActionLogger('yunohost.dyndns')
|
||||||
|
|
||||||
|
|
||||||
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$'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -171,7 +171,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')
|
||||||
|
|
Loading…
Add table
Reference in a new issue