Skip to content

Commit

Permalink
update note
Browse files Browse the repository at this point in the history
  • Loading branch information
mtache committed Nov 21, 2023
1 parent d92cbf1 commit b14e921
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions anta/aioeapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,16 @@ async def jsonrpc_exec(self, jsonrpc: dict) -> list[dict | AnyStr]: # type: ign
# not-executed).
# ---------------------------------------------------------------------

# ---------------------------- eAPI specification ------------------------
# On an error, no result object is present, only an error object, which is
# guaranteed to have the following attributes: code, messages, and data.
# Similar to the result object in the successful response, the data object
# is a list of objects corresponding to the results of all commands up to,
# and including, the failed command. If there was a an error before any
# commands were executed (e.g. bad credentials), data will be empty.
# The last object in the data array will always correspond to the failed
# command. The command failure details are always stored in the errors array.
# -------------------------- eAPI specification ----------------------
# On an error, no result object is present, only an error object, which
# is guaranteed to have the following attributes: code, messages, and
# data. Similar to the result object in the successful response, the
# data object is a list of objects corresponding to the results of all
# commands up to, and including, the failed command. If there was a an
# error before any commands were executed (e.g. bad credentials), data
# will be empty. The last object in the data array will always
# correspond to the failed command. The command failure details are
# always stored in the errors array.

cmd_data = err_data["data"]
len_data = len(cmd_data)
Expand Down

0 comments on commit b14e921

Please sign in to comment.