Skip to content

Commit dbbd62e

Browse files
committed
fix pycodestyle
1 parent 92c3099 commit dbbd62e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

netcompare/utils/jmspath_parsers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
def jmspath_value_parser(path: str):
66
"""
77
Get the JMSPath value path from 'path'.
8+
89
Two combinations are possible based on where reference key is defined. See example below.
910
1011
Args:
@@ -18,7 +19,7 @@ def jmspath_value_parser(path: str):
1819
regex_match_ref_key = re.search(r"\$.*\$\.|\$.*\$,|,\$.*\$", path)
1920
path_suffix = path.split(".")[-1]
2021
if regex_match_ref_key:
21-
if re.search(r"\$.*\$\.|\$.*\$,|,\$.*\$", path_suffix[-1]):
22+
if re.search(r"\$.*\$\.|\$.*\$,|,\$.*\$", path_suffix):
2223
# [$peerAddress$,prefixesReceived] --> [prefixesReceived]
2324
if regex_match_ref_key:
2425
reference_key = regex_match_ref_key.group()

0 commit comments

Comments
 (0)