Merge pull request #871 from coreos-inc/locfix

Add check for empty locations list
This commit is contained in:
josephschorr 2015-11-13 12:25:09 -05:00
commit 1d889b8f90

View file

@ -140,7 +140,7 @@ class SecurityWorker(Worker):
if not storage.exists(locations, path):
locations = _get_storage_locations(image['storage_uuid'])
if not storage.exists(locations, path):
if not locations or not storage.exists(locations, path):
logger.warning('Could not find a valid location to download layer %s',
image['docker_image_id']+'.'+image['storage_uuid'])
_update_image(image, False, self._target_version)