From 4cc06cca1c828a2e8104da944de7790b2645ef49 Mon Sep 17 00:00:00 2001 From: Kedar Kekan <4506537+kedarX@users.noreply.github.com> Date: Thu, 7 Dec 2017 06:19:14 +0530 Subject: [PATCH] * Fix module._result['diff'] (#33654) --- lib/ansible/module_utils/network/iosxr/iosxr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/network/iosxr/iosxr.py b/lib/ansible/module_utils/network/iosxr/iosxr.py index 39119eba2b2..6fd2914704d 100644 --- a/lib/ansible/module_utils/network/iosxr/iosxr.py +++ b/lib/ansible/module_utils/network/iosxr/iosxr.py @@ -383,7 +383,7 @@ def load_config(module, command_filter, warnings, replace=False, admin=False, co diff = get_config_diff(module) if module._diff: if diff: - module['diff'] = to_text(diff, errors='surrogate_or_strict') + module._result['diff'] = to_text(diff, errors='surrogate_or_strict') if commit: commit_config(module, comment=comment) conn.edit_config('end')