diff --git a/cmd/pdu-collect.go b/cmd/pdu-collect.go index 55a9e2e..0c53e03 100644 --- a/cmd/pdu-collect.go +++ b/cmd/pdu-collect.go @@ -27,7 +27,7 @@ func transformToSMDFormat(inventory *pdu.PDUInventory) []map[string]any { var pValue int if len(letterPart) > 1 { - pValue = int(unicode.ToUpper(rune(letterPart[1])) - 'A') + pValue = int(unicode.ToUpper(rune(letterPart[0])) - 'A') } idSuffix := fmt.Sprintf("p%dv%s", pValue, numberPart)