fix for remove idempotent issue (#28226)

pull/28228/head
saichint 7 years ago committed by Nathaniel Case
parent 8003437ebc
commit 064ab7a92d

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

Loading…
Cancel
Save