yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #93531
[Bug 1685352] Re: Can't invoke function 'get_bind' from alembic.op in expand_drop_exceptions function in alembic migration scripts
Looks like this code was changed for Sqlalchemy 2.0 in
d7ba5948ffe4ff4ec760a2774c699774b065cdfb as from_engine() is deprecated,
will close this bug.
** Changed in: neutron
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1685352
Title:
Can't invoke function 'get_bind' from alembic.op in
expand_drop_exceptions function in alembic migration scripts
Status in neutron:
Invalid
Bug description:
If something like:
inspector = reflection.Inspector.from_engine(op.get_bind())
is used in alembic migration scripts in functions
expand_drop_exceptions() or contract_creation_exceptions() then there
is error like:
NameError: Can't invoke function 'get_bind', as the proxy object
has not yet been established for the Alembic 'Operations' class. Try
placing this code inside a callable.
Those 2 functions are used only in functional tests but it would be
nice to have possibility to use this Inspector class for example to
get names of constraints from database.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1685352/+subscriptions
References