diff options
author | zhangyangyang <zhangyangyang@unionpay.com> | 2017-09-03 18:43:13 +0800 |
---|---|---|
committer | zhangyangyang <zhangyangyang@unionpay.com> | 2017-09-03 23:27:04 +0800 |
commit | f96ec864997eaf791b60471f1fed6afcd2435318 (patch) | |
tree | 68b2aaad0d0b3728bc0b88b17b790101c803736b | |
parent | e9a9701d54ea1b708e7fc3ef68e75eb288059632 (diff) | |
download | oslo-db-f96ec864997eaf791b60471f1fed6afcd2435318.tar.gz |
Remove class TransactionResource
This class in new edition is useless.
So class TransactionResource is
deprecated for removal.
Change-Id: Ie4155736732a04238f8458aec9ae0d9a0f709ad2
Closes-Bug:#1714765
-rw-r--r-- | oslo_db/sqlalchemy/provision.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/oslo_db/sqlalchemy/provision.py b/oslo_db/sqlalchemy/provision.py index c7d13d4..faa0e6b 100644 --- a/oslo_db/sqlalchemy/provision.py +++ b/oslo_db/sqlalchemy/provision.py @@ -160,27 +160,6 @@ class DatabaseResource(testresources.TestResourceManager): return False -@debtcollector.removals.removed_class("TransactionResource") -class TransactionResource(testresources.TestResourceManager): - - def __init__(self, database_resource, schema_resource): - super(TransactionResource, self).__init__() - self.resources = [ - ('database', database_resource), - ('schema', schema_resource) - ] - - def clean(self, resource): - resource._dispose() - - def make(self, dependency_resources): - conn = dependency_resources['database'].engine.connect() - return utils.NonCommittingEngine(conn) - - def isDirty(self): - return True - - class SchemaResource(testresources.TestResourceManager): def __init__(self, database_resource, generate_schema, teardown=False): |