diff options
author | Carson Labrado <clabrado@google.com> | 2022-02-15 03:26:03 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-02-18 03:26:31 +0300 |
commit | a6e5e0ab436662983f2468f347a76b0cfbac83f1 (patch) | |
tree | 70983b8008e5a036844edc910e3818ae91046445 /src | |
parent | f5b191a68700bc58beadaaf9224d4d6f69ccf5dc (diff) | |
download | bmcweb-a6e5e0ab436662983f2468f347a76b0cfbac83f1.tar.xz |
chassis-state: no error in chassis if unavailable
This is similar to commit
https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/50799
from Andrew Geissler. getChassisState() can fail if the state
information provided by xyz.openbmc_project.State.Chassis service is
unavailable. We want bmcweb to still return the other chassis
information regardless of if that service is running at the time.
Applying that change to chassis allows the majority of the redfish
chassis data to be returned and used by the client.
Tested:
- Verified that when xyz.openbmc_project.State.Chassis was unavailable,
a call to redfish/v1/Chassis/{ChassisId} returned the available
information rather than a 500 error
Signed-off-by: Carson Labrado <clabrado@google.com>
Change-Id: I0446fac5ef362174d5ae2d082e1dc15eaf1c5875
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions