mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-12 16:40:26 +00:00
Use the correct matching group
This commit is contained in:
parent
e993422106
commit
22eabef06a
@ -306,7 +306,7 @@ def login():
|
|||||||
matches = re.match(description_pattern,group_description)
|
matches = re.match(description_pattern,group_description)
|
||||||
if matches:
|
if matches:
|
||||||
current_app.logger.info('Group {} matched regexp'.format(group_description))
|
current_app.logger.info('Group {} matched regexp'.format(group_description))
|
||||||
group_description = matches.group(0)
|
group_description = matches.group(1)
|
||||||
else:
|
else:
|
||||||
# Regexp didn't match, continue to next iteration
|
# Regexp didn't match, continue to next iteration
|
||||||
next
|
next
|
||||||
@ -318,7 +318,7 @@ def login():
|
|||||||
matches = re.match(pattern,group_name)
|
matches = re.match(pattern,group_name)
|
||||||
if matches:
|
if matches:
|
||||||
current_app.logger.info('Group {} matched regexp'.format(group_name))
|
current_app.logger.info('Group {} matched regexp'.format(group_name))
|
||||||
group_name = matches.group(0)
|
group_name = matches.group(1)
|
||||||
else:
|
else:
|
||||||
# Regexp didn't match, continue to next iteration
|
# Regexp didn't match, continue to next iteration
|
||||||
next
|
next
|
||||||
|
Loading…
Reference in New Issue
Block a user