mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -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{
|
rawOutlet := map[string]any{
|
||||||
"id": outlet.ID,
|
"id": outlet.ID,
|
||||||
"name": outlet.Name,
|
"name": outlet.Name,
|
||||||
"state": outlet.State,
|
"state": outlet.PowerState,
|
||||||
"socket_type": outlet.SocketType,
|
"socket_type": "Cx",
|
||||||
}
|
}
|
||||||
smdOutlets = append(smdOutlets, rawOutlet)
|
smdOutlets = append(smdOutlets, rawOutlet)
|
||||||
}
|
}
|
||||||
|
|
@ -35,6 +35,7 @@ func transformToSMDFormat(inventory *pdu.PDUInventory) []map[string]any {
|
||||||
"Outlets": smdOutlets,
|
"Outlets": smdOutlets,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return []map[string]any{pduRecord}
|
return []map[string]any{pduRecord}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue