Skip to content

Commit

Permalink
fixed result serialiser function handling of list with add details wh…
Browse files Browse the repository at this point in the history
…en having an exception in results
  • Loading branch information
dmulyalin committed Nov 2, 2023
1 parent cf139b2 commit 635f791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nornir_salt/plugins/functions/ResultSerializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def ResultSerializer(nr_results, add_details=False, to_dict=True, skip=None):
ret[-1].setdefault("result", str(i.result))
ret[-1]["failed"] = True if exception else i.failed
ret[-1]["exception"] = exception
ret[-1]["host"] = i.host.name
ret[-1]["host"] = hostname
# form results for the rest of tasks
else:
ret.append(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nornir_salt"
version = "0.20.2"
version = "0.20.3"
description = "Nornir plugins used with SaltStack Salt-Nornir Proxy Minion"
authors = ["Denis Mulyalin <[email protected]>"]
maintainers = ["Denis Mulyalin <[email protected]>"]
Expand Down

0 comments on commit 635f791

Please sign in to comment.