rackspace/python-cloudfiles — Issue #63: Invalid manifest and size?
Author: juergh
Created: 2012-01-30 21:28:58+00:00
State: open

Why does the following code return different results? What am I missing?

code:

conn = cloudfiles.get_connection(user, key, authurl=authurl)

print "bad:"
for c in conn.get_all_containers():
if c.name == "glance":
for o in c.get_objects():
if o.name == "638":
print o.name
print o.size
print o.manifest

print "good:"
c = conn.get_container("glance")
o = c.get_object("638")
print o.name
print o.size
print o.manifest

and the output:

bad:
638
0
None

good:
638
1476395008
glance/638