1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixes #24375 Add check to identify if diff is empty (#24377)

* Fix #24375 Add check to identify if diff is empty
This commit is contained in:
Ganesh Nalawade 2017-05-08 20:36:56 +05:30 committed by GitHub
parent d072d91aed
commit 4186b07d21

View file

@ -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