Fix manifest upload with ceph backend

Change-Id: I937af1d3e30c0034680bfdc52cf2842824f88ac5
This commit is contained in:
Pierre-Arthur MATHIEU 2016-11-14 12:18:18 +00:00
parent f320b35137
commit 7498a69821
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ class SwiftStorage(physical.PhysicalStorage):
LOG.info('[*] Uploading Swift Manifest: {0}'.format(backup))
split = backup.data_path.rsplit('/', 1)
self.swift().put_object(container=split[0], obj=split[1],
contents=u'', headers=headers)
contents=u'', headers=headers,
content_length=len(u''))
LOG.info('Manifest successfully uploaded!')
def prepare(self):