summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWilly Tu <wltu@google.com>2022-12-16 03:42:02 +0300
committerNikhil Namjoshi <nikhilnamjoshi@google.com>2023-01-31 07:53:29 +0300
commitcef57e855f5a800222d5e5ba47cbbe69174211e9 (patch)
tree47252e373a7a2cdda4b850e49a863d82634f0829 /scripts
parent20fc307fb67db61f2c6eb4c6da3e2a9dcf384a14 (diff)
downloadbmcweb-cef57e855f5a800222d5e5ba47cbbe69174211e9.tar.xz
Set state to Absent on Present == false
- State=Absent means this function or resource is either not present or detected. - State=Disabled means that the device exists, but has been disabled. Tested: Redfish Validator Passed Verified that absence of Drive shows [Status][State] = "Absent" ``` wget -qO- http://localhost:80/redfish/v1/Chassis/mychassis/Drives/Drive_0 { "@odata.id": "/redfish/v1/Chassis/mychassis/Drives/Drive_0", "@odata.type": "#Drive.v1_7_0.Drive", "Id": "Drive_0", "Links": { "Chassis": { "@odata.id": "/redfish/v1/Chassis/mychassis" } }, ....., ....., ....., "Protocol": "....", "Status": { "State": "Absent" } } ``` Change-Id: I99217c1c3c94df5c10fb158d3d1ef65d70d0ebb3 Signed-off-by: Willy Tu <wltu@google.com> Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions