Skip to content

Commit 0eee803

Browse files
Refactored result variable in wred_affected_model_check
1 parent 810b49f commit 0eee803

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

aci-preupgrade-validation-script.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6295,7 +6295,6 @@ def multipod_modular_spine_bootscript_check(tversion, fabric_nodes, username, pa
62956295

62966296
@check_wrapper(check_title="WRED with Affected FM Models")
62976297
def wred_affected_model_check(tversion, fabric_nodes, **kwargs):
6298-
result = PASS
62996298
headers = ["Node ID", "Node Name", "Source", "Model"]
63006299
data = []
63016300
recommended_action = "Disable WRED in fabric or upgrade to a release newer than 6.1(5e) or 6.2(1g)."
@@ -6338,9 +6337,8 @@ def wred_affected_model_check(tversion, fabric_nodes, **kwargs):
63386337
return Result(result=PASS, msg="WRED not enabled.")
63396338

63406339
data.sort(key=lambda row: (int(row[0]) if row[0].isdigit() else row[0], row[3]))
6341-
result = FAIL_O
63426340

6343-
return Result(result=result, headers=headers, data=data, recommended_action=recommended_action, doc_url=doc_url)
6341+
return Result(result=FAIL_O, headers=headers, data=data, recommended_action=recommended_action, doc_url=doc_url)
63446342

63456343

63466344
# ---- Script Execution ----

0 commit comments

Comments
 (0)