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

fix for remove idempotent issue (#28226)

This commit is contained in:
saichint 2017-08-15 10:14:40 -07:00 committed by Nathaniel Case
parent 8003437ebc
commit 064ab7a92d

View file

@ -330,7 +330,7 @@ def main():
candidate = CustomNetworkConfig(indent=3)
if state == 'present':
state_present(module, existing, proposed, candidate)
elif state == 'absent':
elif existing and state == 'absent':
state_absent(module, existing, proposed, candidate)
if candidate: