fault/fm-rest-api/fm/fm/api/controllers/v1
Shuicheng Lin aebc9ee1fa Enable fm-rest-api to return json format error message
Closes-Bug: 1789979

fm-rest-api returns json format message for the correct api
access. For the invalid api access, the message is with html
format, need add wrap_app to convert it to json format.
Fix:
The implementation code is copied from upstream Ironic API,
and minor modification to pass tox pep8 check.
Also remove "x" attribute for the py file.
Test:
Pass build and multi node deploy test. Confirmed the return
message is json format.

Change-Id: I36fa89b82377d52008a467316c42c06caa65cd90
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2018-12-03 22:14:21 +08:00
..
__init__.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
alarm.py Enable fm-rest-api to return json format error message 2018-12-03 22:14:21 +08:00
base.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
collection.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
event_log.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
event_suppression.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
link.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
query.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
sysinv.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
types.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
utils.py Enable fm-rest-api to return json format error message 2018-12-03 22:14:21 +08:00