Skip to content

Commit

Permalink
Add meta_data to extra.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeamland committed Jul 16, 2011
1 parent 0628edd commit 242577e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libcloud/storage/drivers/atmos.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ def upload_object(self, file_path, container, object_name, extra=None,
meta = self._emc_meta(result)
del meta_data['md5']
extra = {
'object_id': meta['objectid']
'object_id': meta['objectid'],
'meta_data': meta_data,
}

return Object(object_name, bytes_transferred, result_dict['data_hash'],
Expand Down Expand Up @@ -305,7 +306,8 @@ def chunkify(source):

meta = self._emc_meta(result)
extra = {
'object_id': meta['objectid']
'object_id': meta['objectid'],
'meta_data': meta_data,
}

return Object(object_name, bytes_transferred, data_hash, extra,
Expand Down

0 comments on commit 242577e

Please sign in to comment.