Fix the fault client returns 500 instend of 404 13/12813/1
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Tue, 7 May 2024 03:25:29 +0000 (11:25 +0800)
committerJon Zhang <rong.zhang@windriver.com>
Fri, 17 May 2024 03:12:00 +0000 (03:12 +0000)
commit84d4a349090b65864a3038882ac072824910eed5
tree6cac3488c2ec900dd1128b397975136a0edbd913
parent9df82d9cc61e7e663b7d5d388393de9083b34f33
Fix the fault client returns 500 instend of 404

The dependency on the FM module was changed, resulting in it
returning HTTP code 500 instead of HTTP code 404 for not found
errors.

This commit is a workaround to track the 500 error and skip.
When the FM module upgrade, need to be change back

Test Plan:
PASS - Started the watcher service and checked the logs on the O2
environment for alarms that do not exist on the O-Cloud.

Issue-ID: INF-457
Change-Id: Ie2050bda5dd9fc724051de5e861a82fe9f495c44
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
(cherry picked from commit 277a26d01dba32d307cd23eef3c4f97ab1024721)
o2ims/adapter/clients/fault_client.py