vavavr00m / boto

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

InvalidationBatch doesn't use distribution __init__ parameter for connection. #513

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the class InvalidationBatch, inside the constructor are the comments "If we 
passed in a distribution, then we use that as the connection object". However, 
the code below it just uses self.connection = connection regardless of the 
distribution.

Now if distribution should be a Distribution object (and not a string for the 
distribution id), then shouldn't this use self.connection = 
distribution.connection? I've attached an example patch on what I'm talking 
about.

Original issue reported on code.google.com by boards on 20 Apr 2011 at 5:44

Attachments: