Skip to content

Commit

Permalink
Update merge_config Task logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony House committed Nov 1, 2023
1 parent 34e3591 commit d53405b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nornir_nautobot/plugins/tasks/dispatcher/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ def merge_config(
f"result: {push_result[0].result}, changed: {push_result.changed}",
extra={"object": obj},
)

if push_result.diff:
logger.info(f"```\nDiff: {push_result.diff}\n```", extra={"object": obj})

logger.info("Config merge ended", extra={"object": obj})
return Result(
host=task.host,
Expand Down

0 comments on commit d53405b

Please sign in to comment.