問題を再現する手順はありますか?boto:EC2インスタンスget_attributeのAttributeErrorの結果: 'EC2Connection'オブジェクトに属性 'describe_attribute'がありません
instance.get_attribute( 'カーネル')で実行されているEBS担保インスタンスのカーネル属性を取得する1.attempt
>>> import boto.ec2
>>> regions = boto.ec2.regions()
>>> regions
[RegionInfo:eu-west-1, RegionInfo:us-east-1, RegionInfo:us-west-1, RegionInfo:ap-southeast-1]
>>> usw = regions[2]
>>> conn = usw.connect()
>>> reservations = conn.get_all_instances()
>>> reservations
[Reservation:r-XXXXXXXX]
>>> r1 = reservations[0]
>>> for i in r1.instances: print i
...
Instance:i-XXXXXXXX
>>> instance = r1.instances[0]
>>> instance.get_attribute('kernel')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/boto/ec2/instance.py", line 293, in get_attribute
return self.connection.describe_attribute(self.id, attribute)
AttributeError: 'EC2Connection' object has no attribute 'describe_attribute'
>>>
期待される出力とは何ですか?あなたは代わりに何を見ますか?
は、属性を取得することを期待し、代わりにこのエラーが出ます:はAttributeError:「EC2Connection」オブジェクトが属性「describe_attribute」を持っていない
あなたが製品のどのバージョンを使用していますか?どのオペレーティングシステムで?
boto.Version ==はMac OS X 10.5上の2.0b3(のbotoピップを使用してインストール)
以下のいずれかの追加情報を提供してください。 githubのリポジトリ上の
コードもdescribe_attribute
ありませんことを示していると思われるhttps://github.com/boto/boto/blob/master/boto/ec2/connection.py
提出問題:http://code.google.com/p/boto/issues/detail?id=487