Try to use a 301 redirect to download directly from s3. Allow the s3 and userfiles to run without internet access.

This commit is contained in:
yackob03 2013-12-03 16:39:07 -08:00
parent 82229fd8c8
commit bf85013ef6
4 changed files with 50 additions and 14 deletions

View file

@ -65,6 +65,9 @@ class Storage(object):
return '{0}/{1}/{2}/{3}/diffs.json'.format(self.images, namespace,
repository, image_id)
def get_direct_download_url(self, path, expires_in=60):
return None
def get_content(self, path):
raise NotImplementedError