Skip to content

Commit

Permalink
Updated the tresult with info/err message
Browse files Browse the repository at this point in the history
  • Loading branch information
chidanandpujar committed Jun 6, 2024
1 parent 3230f36 commit 2960474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jnpr/jsnapy/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,15 +420,15 @@ def exists(
% (element, x_path, count_pass, count_fail)
)
self._print_result(msg, res)
tresult["err"] = err_mssg # Updating the user specified err message
tresult["err"] = err_mssg # Updating the user specified err message
elif res is True:
msg = 'All "%s" exists at xpath "%s" [ %d value matched ]' % (
element,
x_path,
count_pass,
)
self._print_result(msg, res)
tresult["info"] = info_mssg # Updating the user specified info message
tresult["info"] = info_mssg # Updating the user specified info message

# tresult['info'] = info_mssg
# tresult['err'] = err_mssg
Expand Down

0 comments on commit 2960474

Please sign in to comment.