Revision b8fa0222
b/snf-pithos-tools/pithos/tools/sh.py | ||
---|---|---|
420 | 420 |
meta=meta, **args) |
421 | 421 |
elif self.use_hashes: |
422 | 422 |
data = f.read() |
423 |
if data is object: |
|
424 |
hashmap = json.loads() |
|
425 |
self.client.create_object_by_hashmap(container, object, hashmap, |
|
426 |
meta=meta, **args) |
|
427 |
else: |
|
428 |
print "Expected object" |
|
423 |
hashmap = json.loads(data) |
|
424 |
self.client.create_object_by_hashmap(container, object, hashmap, |
|
425 |
meta=meta, **args) |
|
429 | 426 |
elif self.x_object_manifest: |
430 | 427 |
self.client.create_manifestation(container, object, self.x_object_manifest) |
431 | 428 |
elif not f: |
Also available in: Unified diff