Merge "Open tarball in binary mode"

This commit is contained in:
Zuul 2018-08-22 21:15:23 +00:00 committed by Gerrit Code Review
commit 91a788bed0
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def create_tarball(directory, filename, options='-czf',
def tarball_extract_to_swift_container(object_client, filename, container):
LOG.debug('Uploading filename %s to Swift container %s' % (filename,
container))
with open(filename, 'r') as f:
with open(filename, 'rb') as f:
object_client.put_object(
container=container,
obj='',