mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Fix xname numbering
This commit is contained in:
parent
940e7fee2a
commit
ad500d086d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue