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 328a5a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/modules/aoscx_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,8 @@ def main():

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

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

0 comments on commit 328a5a1

Please sign in to comment.