Remove an unnecessary outer join

This commit is contained in:
Jake Moshenko 2016-01-05 12:26:38 -05:00
parent 8f80d7064b
commit fd1e5f2407

View file

@ -218,7 +218,7 @@ def set_image_storage_metadata(docker_image_id, namespace_name, repository_name,
.join(Repository)
.join(Namespace, on=(Repository.namespace_user == Namespace.id))
.switch(Image)
.join(ImageStorage, JOIN_LEFT_OUTER)
.join(ImageStorage)
.where(Repository.name == repository_name, Namespace.username == namespace_name,
Image.docker_image_id == docker_image_id))