monasca-api/monasca_api/v2
Witold Bedyk 11e5bceffd Fix exception handling in _alarm_definition_create
Use oslo encodeutils to safely format exception title and description
both in Python 2 and 3. Otherwise exception is thrown[1]:

  TypeError: b'Invalid alarm expression' is not JSON serializable

[1] http://logs.openstack.org/58/606658/2/check/openstack-tox-lower-constraints/0a33141/testr_results.html.gz

Story: 2003240
Task: 26920

Change-Id: I78ca6f43a4d998613d4c3f64f82a384701d620dd
2018-10-05 14:10:04 +02:00
..
common Update pep8 checks 2018-04-11 12:40:27 +02:00
reference Fix exception handling in _alarm_definition_create 2018-10-05 14:10:04 +02:00
__init__.py Updated for Falcon 0.2 and clean-up 2015-06-06 21:47:03 -06:00