fault/fm-rest-api/fm/fm/api
Pablo Bovina 51ba594bf8 Handle cgts-client calls for non-admin users
Handle http client exceptions for non-admin
users. This is because some alarms/events
metadata are not available for them.

For example if the call fails the user will see the a
value like:

"host=controller-1.port=enp0s8"

instead of:

"host=controller-1.port=0cbb441a-874d-418e-bd57-7aa1b8ab0044"

Before this if an error in translation happened, the user
experienced an alert badge saying "Unable to retrieve
Events", then the user seen an empty table.

Story: 2009077
Task: 43093

Signed-off-by: Pablo Bovina <pablo.bovina@windriver.com>
Change-Id: I68eeb103a6fe97beb1fb7969a1cd9503210cdcb0
2021-08-31 13:23:46 +00:00
..
controllers Handle cgts-client calls for non-admin users 2021-08-31 13:23:46 +00:00
middleware python3: Fix python3 compatibility issues 2021-08-16 13:10:27 +00:00
__init__.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
app.py Enable fm-rest-api to return json format error message 2018-12-03 22:14:21 +08:00
config.py Add PUT/POST methods to FM restful API 2019-06-05 08:57:36 +08:00
hooks.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00