Skip to content

Commit 26aecbe

Browse files
committed
Removed serial Number from header
1 parent 871e281 commit 26aecbe

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

aci-preupgrade-validation-script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6320,7 +6320,7 @@ def inband_management_policy_misconfig_check(cversion, tversion, **kwargs):
63206320
@check_wrapper(check_title='Micron SSD Lifetime Validation')
63216321
def micron_ssd_lifetime_check(tversion, **kwargs):
63226322
result = PASS
6323-
headers = ['Pod', 'Node', 'Model', 'Serial Number']
6323+
headers = ['Pod', 'Node', 'Model']
63246324
data = []
63256325
recommended_action = (
63266326
'\n\tRun the SSD Lifetime Validation script on all identified nodes before upgrading.\n'
@@ -6343,7 +6343,7 @@ def micron_ssd_lifetime_check(tversion, **kwargs):
63436343
dn = re.search(node_regex, attr.get("dn", ""))
63446344
pod_id = dn.group("pod") if dn else "Unknown"
63456345
node_id = dn.group('node') if dn else "Unknown"
6346-
data.append([pod_id, node_id, attr.get('model',''), attr.get('ser','')])
6346+
data.append([pod_id, node_id, attr.get('model','')])
63476347

63486348
if data:
63496349
result = FAIL_O

tests/checks/micron_ssd_lifetime_check/test_micron_ssd_lifetime_check.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@
4747
{eqptflash_micron: micron_drives_single},
4848
"6.1(5e)",
4949
script.FAIL_O,
50-
[["1", "101", "MTFDDAK240MBB", "SN0001"]],
50+
[["1", "101", "MTFDDAK240MBB"]],
5151
),
5252
# Test 6: FAIL_O - affected version 6.2(1g) with single Micron drive
5353
(
5454
{eqptflash_micron: micron_drives_single},
5555
"6.2(1g)",
5656
script.FAIL_O,
57-
[["1", "101", "MTFDDAK240MBB", "SN0001"]],
57+
[["1", "101", "MTFDDAK240MBB"]],
5858
),
5959
# Test 7: FAIL_O - multiple Micron drives across pods and nodes
6060
(
6161
{eqptflash_micron: micron_drives_multi},
6262
"6.1(5e)",
6363
script.FAIL_O,
6464
[
65-
["1", "101", "MTFDDAK240MBB", "SN0001"],
66-
["2", "201", "MTFDDAK480MBB", "SN0002"],
65+
["1", "101", "MTFDDAK240MBB"],
66+
["2", "201", "MTFDDAK480MBB"],
6767
],
6868
),
6969
],

0 commit comments

Comments
 (0)