keystone/releasenotes/notes/use-correct-inspect-8142e317c1e39c2a.yaml
Mike Bayer 527b1587e1 Use inspect instead of Inspector.from_engine()
SQLAlchemy is likely going to deprecate
Inspector.from_engine() which will start emitting a deprecation
warning in 1.4.   Use sqlalchemy.inspect() instead.

Change-Id: I287ba10f2e3308950b9caf6f51f3ee1db29a6448
2020-02-04 16:24:31 -05:00

9 lines
326 B
YAML

---
fixes:
- >
Replaced the usage of SQLAlchemy Inspector.from_engine() with the
sqlalchemy.inspect() call, within several Alembic migration files as well
as a test suite. SQLAlchemy will be deprecating the former syntax,
so this change allows forwads compatibility with the next series of
SQLAlchemy.