mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
use custom fork of sshtunnel; remove ujson
This commit is contained in:
@@ -179,7 +179,7 @@ def validate_aspath(value):
|
||||
mode = params.queries.bgp_aspath.pattern.mode
|
||||
pattern = getattr(params.queries.bgp_aspath.pattern, mode)
|
||||
|
||||
if not re.match(pattern, value):
|
||||
if not bool(re.match(pattern, value)):
|
||||
raise InputInvalid(
|
||||
params.messages.invalid_input,
|
||||
target=value,
|
||||
|
Reference in New Issue
Block a user