Skip to content

Commit b4671ca

Browse files
committed
fix: handle empty model names in NIC summary output
Signed-off-by: Harper, Jason M <[email protected]>
1 parent edf4040 commit b4671ca

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)