peterknife / boto

Automatically exported from code.google.com/p/boto
0 stars 0 forks source link

AttributeError: 'S3Origin' object has no attribute 'replace' #552

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
c = CloudFrontConnection()
rs = c.get_all_distributions()
distro = rs[0].get_distribution()
distro.get_objects()

What is the expected output? What do you see instead?
I expect to get the objects in my original bucket. However, it throws 
AttributeError exception saying "S3Origin object has no attribute replace". 

What version of the product are you using? On what operating system?
boto version is 2.0 and operating system is linux 2.6.32-33.

Original issue reported on code.google.com by yunusbas...@gmail.com on 26 Aug 2011 at 8:37

GoogleCodeExporter commented 9 years ago
See https://github.com/boto/boto/issues/315

Note that this is considerably more complicated since the introduction of 
CustomOrigins (i.e. not all origins are S3 buckets).  Also, 
OriginAccessIdentities also complicate the issue.  So, I'm not really sure if 
the get_objects method really makes sense anymore.  But at least it no longer 
breaks and should work again for simple S3 origins.

Original comment by Mitch.Ga...@gmail.com on 26 Aug 2011 at 1:24