Fix a remaining direct usage of transaction factory in the data model.

This commit is contained in:
Jake Moshenko 2014-05-13 15:17:16 -04:00
parent 5fdccfe3e6
commit 553ef36e9b

View file

@ -1076,7 +1076,7 @@ def list_repository_tags(namespace_name, repository_name):
def garbage_collect_repository(namespace_name, repository_name):
with transaction_factory(db):
with config.app_config['DB_TRANSACTION_FACTORY'](db):
# Get a list of all images used by tags in the repository
tag_query = (RepositoryTag
.select(RepositoryTag, Image, ImageStorage)