Skip to content

Commit

Permalink
aoscx_vrf: use return of apply() function to set modified(changed) or…
Browse files Browse the repository at this point in the history
… not
  • Loading branch information
alagoutte committed Nov 13, 2023
1 parent 159a877 commit a111eab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/modules/aoscx_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,9 @@ def main():
ansible_module.fail_json(msg=str(e))

# Configure RD (Route Distinguisher)
if rd:
modified |= vrf.rd != rd
if rd:g
vrf.rd = rd
vrf.apply()
modified |= vrf.apply()

result["changed"] = modified
ansible_module.exit_json(**result)
Expand Down

0 comments on commit a111eab

Please sign in to comment.