From 4186b07d212d3c7489b55a816756f0aa19ad285f Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Mon, 8 May 2017 20:36:56 +0530 Subject: [PATCH] Fixes #24375 Add check to identify if diff is empty (#24377) * Fix #24375 Add check to identify if diff is empty --- lib/ansible/modules/network/junos/junos_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/junos/junos_config.py b/lib/ansible/modules/network/junos/junos_config.py index 6363faac04..a0783b79f0 100644 --- a/lib/ansible/modules/network/junos/junos_config.py +++ b/lib/ansible/modules/network/junos/junos_config.py @@ -348,7 +348,7 @@ def main(): else: diff = configure_device(module, warnings) - if diff is not None: + if diff: if module._diff: result['diff'] = {'prepared': diff} result['changed'] = True