fault/python-fmclient/fmclient
Joao Victor Portal 277c64bed7 Fix FM error messages for forbidden requests
The CLI error messages for users with reader role were not clear to the
operator and this change fixes this.

Test Plan:

PASS: In an AIO-SX with this change present, create a new openstack user
with reader role and through this user execute the commands:
fm alarm-list
fm alarm-delete <uuid>
fm event-suppress --alarm_id <alarm_id>
and check that the "alarm-list" command is executed without errors and
that the error message of the other commands changes from:
"HTTP Client Error (HTTP 403) (Request-ID: req-<req_id>)"
to:
"Error: Forbidden."

Story: 2010149
Task: 46620

Signed-off-by: Joao Victor Portal <Joao.VictorPortal@windriver.com>
Change-Id: I45007a7f5319ef0a0238a07d671a859b5081660a
2022-10-20 20:47:13 -03:00
..
fmclient Fix FM error messages for forbidden requests 2022-10-20 20:47:13 -03:00
tools Decouple Fault Management from stx-config 2018-08-20 15:00:38 -05:00
LICENSE fm-rest-api: Fix LICENSE Permissions 2019-06-13 10:25:41 -07:00
setup.cfg Use DevStack's setup_*() functions for Python packages 2019-05-17 13:11:58 -05:00
setup.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00