This commit is contained in:
Ben McDonald 2025-06-06 13:59:27 -07:00
parent 266b3df0b7
commit ae26dac328
No known key found for this signature in database

View file

@ -34,7 +34,7 @@ func transformToSMDFormat(inventory *pdu.PDUInventory) []map[string]any {
"RedfishURL": redfishURL,
"ComponentEndpointType": "ComponentEndpointOutlet",
"RedfishOutletInfo": map[string]any{
"Name": outlet.Name, // Directly from inventory
"Name": outlet.Name,
"Actions": map[string]any{
"#Outlet.PowerControl": map[string]any{
"PowerState@Redfish.AllowableValues": []string{"On", "Off"},