From 0361b4c3634c27e6fe16cbb46e66803f214f6b98 Mon Sep 17 00:00:00 2001 From: Eduardo Pozo Date: Thu, 17 Oct 2024 12:23:01 +0200 Subject: [PATCH] Fix object and filter --- plugins/modules/aci_oob_epg_to_contract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/aci_oob_epg_to_contract.py b/plugins/modules/aci_oob_epg_to_contract.py index d1ebf9d45..092cea5ca 100644 --- a/plugins/modules/aci_oob_epg_to_contract.py +++ b/plugins/modules/aci_oob_epg_to_contract.py @@ -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 {}, ), )