diff options
author | Rodolfo Alonso Hernandez <ralonsoh@redhat.com> | 2023-03-27 15:12:06 +0200 |
---|---|---|
committer | Rodolfo Alonso <ralonsoh@redhat.com> | 2023-03-27 14:49:25 +0000 |
commit | da4f13e7345653eba8aab5b8aceeaeff7367989e (patch) | |
tree | a881a6680363990a51541219c397ac94f71f47ba /releasenotes | |
parent | 94d6e24ca19b0116eed00d5ccdb8a538918c6dcf (diff) | |
download | oslo-db-da4f13e7345653eba8aab5b8aceeaeff7367989e.tar.gz |
Do not convert to string ``url.URL`` objects
The SQLAlchemy method ``url.make_url`` accepts strings and ``url.URL``
object types. By default, oslo.db was converting any object to string
before calling ``url.make_url``, that parses this string. Since
SQLAlchemy 2.0, the ``url.URL.__str__`` method is removed and the
``url.URL.__repr__`` method returns a string with the password hidden.
The new utility method checks what type of object is passed and only
if the object is not a string nor a ``url.URL`` object, is converted
to a string.
Closes-Bug: #2012928
Change-Id: I84f13f378f83e2a55078370ae2b4787f00982c23
Diffstat (limited to 'releasenotes')
0 files changed, 0 insertions, 0 deletions