Fix the fault client returns 500 instend of 404 84/12884/2
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Tue, 7 May 2024 03:25:29 +0000 (11:25 +0800)
committerZhang Rong(Jon) <rong.zhang@windriver.com>
Tue, 7 May 2024 04:52:55 +0000 (12:52 +0800)
commit277a26d01dba32d307cd23eef3c4f97ab1024721
treefdaa0b24261e081c45c19ec939dd4010b8a25d58
parente00040ca7c6149995c5883bcd9dd81e02b25d0da
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>
o2ims/adapter/clients/fault_client.py