Revision c4ab2af9 kamaki/clients/pithos.py

b/kamaki/clients/pithos.py
36 36

  
37 37
from . import ClientError
38 38
from .storage import StorageClient
39
from ..utils import OrderedDict
39 40

  
40 41

  
41 42
class PithosClient(StorageClient):
......
55 56
        blockhash = meta['block-hash']
56 57
        
57 58
        size = 0
58
        hashes = {}
59
        hashes = OrderedDict()
59 60
        data = f.read(blocksize)
60 61
        while data:
61 62
            bytes = len(data)
......
68 69
                
69 70
        path = '/%s/%s/%s?hashmap&format=json' % (self.account, self.container,
70 71
                                                  object)
71
        hashmap = dict(bytes=size, hashes=hashes)
72
        hashmap = dict(bytes=size, hashes=hashes.keys())
72 73
        req = json.dumps(hashmap)
73 74
        resp, reply = self.raw_http_cmd('PUT', path, req, success=None)
74 75
        

Also available in: Unified diff