summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMyung Bae <myungbae@us.ibm.com>2024-02-19 21:39:56 +0300
committerEd Tanous <ed@tanous.net>2024-02-23 20:25:06 +0300
commit78c9020305038b7974b4737c9b1d0b4afb9740f2 (patch)
treee202f33dcbc2f41409b155de43347233fa85c19c /test
parentb4d593f1c6113311da4b29fc352187fbcb6d1fd4 (diff)
downloadbmcweb-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 'test')
0 files changed, 0 insertions, 0 deletions