mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix for nxos_ospf idempotent issue (#27913)
This commit is contained in:
parent
ef55530d67
commit
14186af558
10 changed files with 127 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue