summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2021-10-01 22:05:44 +0300
committerEd Tanous <ed@tanous.net>2021-10-19 20:05:54 +0300
commit27ea7db1c2a40bdb3402a9ffda335d2876f604fb (patch)
tree8a7d47293c32999b36d0e61cdd5bdda0721797de /meson_options.txt
parent84b35604e3db98450d7e71b3cf0a4b6be152e1d2 (diff)
downloadbmcweb-27ea7db1c2a40bdb3402a9ffda335d2876f604fb.tar.xz
Collections should handle no members present
Upon booting a new system that doesn't have an inventory system working, the mapper will return an error if no resources exist. This is unfortunate, but an error we should handle properly. This commit catches the "no paths found" return code from the mapper, and pushes back an empty collection, instead of returning internal error (500). Tested: Resolved https://192.168.1.224:18080/redfish/v1/Chassis on a system with no Chassis resources, and observed 200, and an empty collection returned. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Iedaed198840e88fb0f3dc62423b064edff70972c
Diffstat (limited to 'meson_options.txt')
0 files changed, 0 insertions, 0 deletions