mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Fix socket type
This commit is contained in:
parent
67f9d3e2b3
commit
1b80bef5fa
1 changed files with 3 additions and 2 deletions
|
|
@ -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}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue