Fix socket type

This commit is contained in:
Ben McDonald 2025-06-12 15:04:20 -07:00
parent 67f9d3e2b3
commit 1b80bef5fa
No known key found for this signature in database

View file

@ -18,8 +18,8 @@ func transformToSMDFormat(inventory *pdu.PDUInventory) []map[string]any {
rawOutlet := map[string]any{
"id": outlet.ID,
"name": outlet.Name,
"state": outlet.State,
"socket_type": outlet.SocketType,
"state": outlet.PowerState,
"socket_type": "Cx",
}
smdOutlets = append(smdOutlets, rawOutlet)
}
@ -35,6 +35,7 @@ func transformToSMDFormat(inventory *pdu.PDUInventory) []map[string]any {
"Outlets": smdOutlets,
},
}
return []map[string]any{pduRecord}
}