Seek the file pointer to zero since we now use multipart for upload of userfiles, which does not seek automatically.

This commit is contained in:
Jake Moshenko 2014-09-10 17:18:49 -04:00
parent 8c49e0d2c6
commit 539fc04205

View file

@ -291,6 +291,9 @@ class GithubBuildTrigger(BuildTrigger):
with tarfile.open(fileobj=tarball) as archive:
tarball_subdir = archive.getnames()[0]
# Seek to position 0 to make boto multipart happy
tarball.seek(0)
dockerfile_id = user_files.store_file(tarball, TARBALL_MIME)
logger.debug('Successfully prepared job')