Swift Multi-tenant store: Pass context on upload

Image upload returns an E500 as the context is not being
passed to the swift client.

Change-Id: I2065b7dd281bfbb513f13270a0c062fc7132f763
Partial-bug: 1385213
This commit is contained in:
Stuart McLaren 2014-10-24 10:42:44 +00:00
parent 8cf3d38246
commit 867b696d88
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ def upload_data_to_store(req, image_meta, image_data, store, notifier):
image_meta['id'],
utils.CooperativeReader(image_data),
image_meta['size'],
store)
store,
context=req.context)
location_data = {'url': uri,
'metadata': location_metadata,