Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # uploading a gzip'd tar file with the sdk works but is awkward:
- obj = conn.object_store.create_object(CONTAINER_NAME, tar_file_name)
- obj.data = open(tar_file_location, 'rb')
- obj.create(conn.object_store)
- # same with shade breaks with unicode decoding error as file isn't being opened as binary:
- obj = conn.create_object(CONTAINER_NAME, tar_file_location)
- # would expect something like the following to work:
- obj = conn.object_store.create_object(CONTAINER_NAME, tar_file_name, data=open(tar_file_location, 'rb'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement