Fix for nxos_ospf idempotent issue (#27913)

This commit is contained in:
saichint 2017-08-09 08:25:35 -07:00 committed by Nathaniel Case
commit 14186af558
10 changed files with 127 additions and 1 deletions

View file

@ -139,7 +139,7 @@ def main():
existing_list = existing['ospf']
candidate = CustomNetworkConfig(indent=3)
if state == 'present':
if state == 'present' and ospf not in existing_list:
state_present(module, proposed, candidate)
if state == 'absent' and ospf in existing_list:
state_absent(module, proposed, candidate)