Public bug reported: 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. ** Affects: neutron Importance: Undecided Status: New ** Tags: db -- 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: New 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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp