Skip to content

Commit

Permalink
Fix object and filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Pozo committed Oct 17, 2024
1 parent 22eb296 commit 0361b4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/aci_oob_epg_to_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ def main():
subclass_3=dict(
aci_class="mgmtRsOoBProv",
aci_rn="rsooBProv-{0}".format(contract),
module_object=contract,
target_filter={"tDn": ctProv_mo},
module_object=ctProv_mo if contract else None,
target_filter={"tDn": ctProv_mo} if contract else {},
),
)

Expand Down

0 comments on commit 0361b4c

Please sign in to comment.