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