Skip to content

Commit

Permalink
Updated the tresult with info/err message Juniper#393
Browse files Browse the repository at this point in the history
  • Loading branch information
chidanandpujar committed Jun 12, 2024
1 parent 313bf71 commit 5ae3f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/jsnap2py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def msg_change(x):
data = (data[0],data[1][1:])
if data[0] in ['id', 'ID']:
data = (data[0], int(data[1])-1)
msg = "{{%s_%s}}" % (data)
msg = "{{%s_%s}}" % (data)
elif data[0] in ['PRE', 'POST']:
msg = '{{%s["%s"]}}' % (data)
else:
Expand Down Expand Up @@ -120,7 +120,7 @@ else:
'\$id\.\d|\$pre\s?/?\.?/\s?[\w-]+/?[\w-]*|\$post\s?/?\.?/\s?[\w-]+/?[\w-]*|,\s?\.{0,2}/?\.{0,2}/?[\w-]+/?[\w-]*/?[\w-]*',
data.group(2),
re.I)
inputs = map(msg_change, inputs)
inputs = list(map(msg_change, inputs))
to_format = re.search('"(.*?)"', obj.group(2))
if len(inputs) > 0:
if to_format:
Expand Down

0 comments on commit 5ae3f9b

Please sign in to comment.