peterknife / boto

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

boto/ec2/autoscale/__init__.py delete_launch_configuration #506

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.import boto; asc = boto.connect_autoscale()
# You need to have at least a Launch Configuration
2.lc = asc.get_all_launch_configurations()[0]
3.lc.delete()

What is the expected output? What do you see instead?
>>> lc.delete()
Request:8aaf2ce9-5e2d-11e0-a9b3-5fc5beedbbf3

  File "build/bdist.macosx-10.6-universal/egg/boto/ec2/autoscale/__init__.py", line 191, in delete_launch_configuration
AttributeError: HTTPSConnection instance has no attribute 'get_object'

What version of the product are you using? On what operating system?
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import boto
>>> boto.__path__
['/Library/Python/2.6/site-packages/boto-2.0b5-py2.6.egg/boto']

Please provide any additional information below.

Suggested Correction:
/boto/ec2/autoscale/__init__.py (line 191)
return self.connection.get_object('DeleteLaunchConfiguration', params,
                                          Request)
connection object should be removed, since it doesn't exist

Original issue reported on code.google.com by set...@valiha.com on 3 Apr 2011 at 8:13

GoogleCodeExporter commented 9 years ago
fixed in 
https://github.com/boto/boto/commit/5b1460f389c4c9fb28f5b4abae63eb47f032510e

Original comment by Mitch.Ga...@gmail.com on 8 Apr 2011 at 3:34