Skip to content

Commit 1d68290

Browse files
authored
fix: handle empty model names in NIC summary output (#539)
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
1 parent b6d6ae9 commit 1d68290

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/report/table_helpers.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,6 +1754,9 @@ func nicSummaryFromOutput(outputs map[string]script.ScriptOutput) string {
17541754
}
17551755
var summary []string
17561756
for model, count := range modelCount {
1757+
if model == "" {
1758+
model = "Unknown NIC"
1759+
}
17571760
summary = append(summary, fmt.Sprintf("%dx %s", count, model))
17581761
}
17591762
return strings.Join(summary, ", ")

0 commit comments

Comments
 (0)