Skip to content

Commit cfb1a6a

Browse files
samiiblhercot
authored andcommitted
[ignore] Renamed reference collection variable
1 parent 325adc7 commit cfb1a6a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

plugins/modules/ndo_node_profile.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def main():
259259
object_description = "Node Profile"
260260
path = "/fabricResourceTemplate/template/nodeProfiles"
261261
node_profile_path = None
262-
reference_dict = {
262+
reference_collection = {
263263
"policy": {
264264
"name": "policyName",
265265
"reference": "policy",
@@ -279,10 +279,12 @@ def main():
279279
)
280280
if match:
281281
node_profile_path = "{0}/{1}".format(path, match.index)
282-
mso_template.update_config_with_template_and_references(match.details, reference_dict)
282+
mso_template.update_config_with_template_and_references(match.details, reference_collection)
283283
mso.existing = mso.previous = copy.deepcopy(match.details)
284284
else:
285-
mso.existing = mso.previous = [mso_template.update_config_with_template_and_references(profile, reference_dict) for profile in existing_node_profiles]
285+
mso.existing = mso.previous = [
286+
mso_template.update_config_with_template_and_references(profile, reference_collection) for profile in existing_node_profiles
287+
]
286288

287289
if state == "present":
288290
if uuid and not mso.existing:
@@ -321,12 +323,12 @@ def main():
321323
[KVPair("uuid", uuid) if uuid else KVPair("name", name)],
322324
)
323325
if match:
324-
mso_template.update_config_with_template_and_references(match.details, reference_dict)
326+
mso_template.update_config_with_template_and_references(match.details, reference_collection)
325327
mso.existing = match.details # When the state is present
326328
else:
327329
mso.existing = {} # When the state is absent
328330
elif module.check_mode and state != "query": # When the state is present/absent with check mode
329-
mso_template.update_config_with_template_and_references(mso.proposed, reference_dict)
331+
mso_template.update_config_with_template_and_references(mso.proposed, reference_collection)
330332
mso.existing = mso.proposed if state == "present" else {}
331333

332334
mso.exit_json()

0 commit comments

Comments
 (0)