diff options
author | James Mighion <james.mighion@gmail.com> | 2017-08-07 11:30:10 -0400 |
---|---|---|
committer | Ricardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com> | 2017-08-07 17:30:10 +0200 |
commit | bdccc2df3c2825d0e194dcd2814553ea7f9e3a98 (patch) | |
tree | 7da08db8b8fbd19668733d0198c6a3fad8ed9871 | |
parent | 8f4b13de73c6889c7d0e9264404f5de940bf2f9d (diff) | |
download | ansible-bdccc2df3c2825d0e194dcd2814553ea7f9e3a98.tar.gz |
Keep the diff even when running in check mode so we can tell if there is a diff or changed is true. (#27713)
-rw-r--r-- | lib/ansible/module_utils/iosxr.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/iosxr.py b/lib/ansible/module_utils/iosxr.py index 3b5ba54b28..3e01d29c3d 100644 --- a/lib/ansible/module_utils/iosxr.py +++ b/lib/ansible/module_utils/iosxr.py @@ -139,7 +139,6 @@ def load_config(module, commands, warnings, commit=False, replace=False, comment cmd += ' comment {0}'.format(comment) else: cmd = 'abort' - diff = None rc, out, err = exec_command(module, cmd) if rc != 0: |