PY3: Ensure _refresh is passed str type for reason
Drop the use of oslo.i18n's Message class when defining the reason
argument that is passed to _refresh(). Ensuing code that _refresh()
uses, in particular pymysql [1], expects a unicode str type rather
than an oslo_i18n._message.Message type.
Reviewed: https:/ /review. openstack. org/613656 /git.openstack. org/cgit/ openstack/ aodh/commit/ ?id=dbf6d2770dc d97d2ef2939ca73 5309e44b946c4d
Committed: https:/
Submitter: Zuul
Branch: master
commit dbf6d2770dcd97d 2ef2939ca735309 e44b946c4d
Author: Corey Bryant <email address hidden>
Date: Fri Oct 26 13:58:56 2018 -0400
PY3: Ensure _refresh is passed str type for reason
Drop the use of oslo.i18n's Message class when defining the reason _message. Message type.
argument that is passed to _refresh(). Ensuing code that _refresh()
uses, in particular pymysql [1], expects a unicode str type rather
than an oslo_i18n.
[1] https:/ /github. com/PyMySQL/ PyMySQL/ blob/v0. 9.2/pymysql/ converters. py#L68
Change-Id: Icc59edc8a91ba7 ae6929e853f1bf0 9bd25cdc039
Closes-Bug: #1799406