diff options
author | Myung Bae <myungbae@us.ibm.com> | 2024-02-19 21:39:56 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-02-23 20:25:06 +0300 |
commit | 78c9020305038b7974b4737c9b1d0b4afb9740f2 (patch) | |
tree | e202f33dcbc2f41409b155de43347233fa85c19c /Redfish.md | |
parent | b4d593f1c6113311da4b29fc352187fbcb6d1fd4 (diff) | |
download | bmcweb-78c9020305038b7974b4737c9b1d0b4afb9740f2.tar.xz |
Refactor to pass dbus error code to caller
The aux function `getValidFabricAdapterPath()` currently handles
the error uniformly for all callers.
This commit is to make the function to pass the error conddition to the
caller so that it can be handled appropriately in the caller's context.
Tested:
- Check `resourceNotFound` is generated by caller.
```
$ curl -k -X GET https://${bmc}:18080/redfish/v1/Systems/system/FabricAdapters/badAdapter
[WARNING fabric_adapters.hpp:270] Adapter not found
```
- Validator passes
Change-Id: I37a61a3a79138aa898ab18332f58e3007496e302
Signed-off-by: Myung Bae <myungbae@us.ibm.com>
Diffstat (limited to 'Redfish.md')
0 files changed, 0 insertions, 0 deletions