mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix for nxos_ospf idempotent issue (#27913)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user