Skip to content
Commit 5af690f5 authored by Abhishek Patel's avatar Abhishek Patel Committed by Gunnar Mills
Browse files

Adjust parameter name of FirmwareInventoryId



redfish URL "/redfish/v1/UpdateService/FirmwareInventory/
{SoftwareInventoryId}" had parameter called "Members@odata.count".

This parameter name is not appropriate because it retrieves data, count
of Related Item, from "RelatedItem" parameter, so its name has to be
"RelatedItem@odata.count".

Implement:
  Updated name of JSON parameter, also updated code variable name.

Tested: Validator passes

- Keep primary data and other parameter deleted from JSON data
Old JSON data:
  {
    "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/
    {SoftwareInventoryId},
    "@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory",
    "Description": "BMC image",
    "Members@odata.count": 1,
    "Name": "Software Inventory",
    "RelatedItem": [{
      "@odata.id": "/redfish/v1/Managers/bmc"
    }],
  }
new JSON data:
  {
    "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/
    {SoftwareInventoryId},
    "@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory",
    "Description": "BMC image",
    "RelatedItem@odata.count": 1,
    "Name": "Software Inventory",
    "RelatedItem": [{
      "@odata.id": "/redfish/v1/Managers/bmc"
    }],
  }

Signed-off-by: default avatarAbhishek Patel <Abhishek.Patel@ibm.com>
Change-Id: I12c123fc78872890efe2949d2a3a55f882cdd09b
parent b623d9c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment