Skip to content

Commit 93c0622

Browse files
committed
[ignore] Remove variable and move mapping directly to dict attribute in aci_contract_subject.
1 parent da557cf commit 93c0622

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugins/modules/aci_contract_subject.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,6 @@ def main():
380380
direction = module.params.get("apply_both_direction")
381381

382382
subject_class = "vzSubj"
383-
ctr_class = CONTRACT_CLASS_MAPPING[contract_type]["class"]
384-
ctr_rn = CONTRACT_CLASS_MAPPING[contract_type]["rn"].format(contract)
385383

386384
base_subject_dict = dict(
387385
root_class=dict(
@@ -391,8 +389,8 @@ def main():
391389
target_filter={"name": tenant},
392390
),
393391
subclass_1=dict(
394-
aci_class=ctr_class,
395-
aci_rn=ctr_rn,
392+
aci_class=CONTRACT_CLASS_MAPPING[contract_type]["class"],
393+
aci_rn=CONTRACT_CLASS_MAPPING[contract_type]["rn"].format(contract),
396394
module_object=contract,
397395
target_filter={"name": contract},
398396
),

0 commit comments

Comments
 (0)