diff --git a/lib/ansible/modules/network/eos/eos_config.py b/lib/ansible/modules/network/eos/eos_config.py index 460887a4f2e..3cb2cc5f8f7 100644 --- a/lib/ansible/modules/network/eos/eos_config.py +++ b/lib/ansible/modules/network/eos/eos_config.py @@ -429,7 +429,7 @@ def main(): contents = running_config.config_text # recreate the object in order to process diff_ignore_lines - running_config = NetworkConfig(indent=1, contents=config_text, ignore_lines=diff_ignore_lines) + running_config = NetworkConfig(indent=1, contents=contents, ignore_lines=diff_ignore_lines) if module.params['diff_against'] == 'running': if module.check_mode: diff --git a/lib/ansible/modules/network/ios/ios_config.py b/lib/ansible/modules/network/ios/ios_config.py index 511481f2810..40d0d1583b3 100644 --- a/lib/ansible/modules/network/ios/ios_config.py +++ b/lib/ansible/modules/network/ios/ios_config.py @@ -495,7 +495,7 @@ def main(): contents = running_config.config_text # recreate the object in order to process diff_ignore_lines - running_config = NetworkConfig(indent=1, contents=config_text, ignore_lines=diff_ignore_lines) + running_config = NetworkConfig(indent=1, contents=contents, ignore_lines=diff_ignore_lines) if module.params['diff_against'] == 'running': if module.check_mode: diff --git a/lib/ansible/modules/network/nxos/nxos_config.py b/lib/ansible/modules/network/nxos/nxos_config.py index 7f31f69f056..223a4276679 100644 --- a/lib/ansible/modules/network/nxos/nxos_config.py +++ b/lib/ansible/modules/network/nxos/nxos_config.py @@ -416,7 +416,7 @@ def main(): contents = running_config.config_text # recreate the object in order to process diff_ignore_lines - running_config = NetworkConfig(indent=1, contents=config_text, ignore_lines=diff_ignore_lines) + running_config = NetworkConfig(indent=1, contents=contents, ignore_lines=diff_ignore_lines) if module.params['diff_against'] == 'running': if module.check_mode: