euca-describe-instance-attribute is missing

Bug #805369 reported by Isaku Yamahata
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
euca2ools
New
Undecided
Mitch Garnaat

Bug Description

euca-describe-instance-attribute which calls DescribeInstanceAttribute is missing.
I attached the patch to implement it.
To make it work, I needed to patch boto.ec2.instance.InstanceAttribute.
I believe that eucalyptus maintainers also maintains boto too, so I also attached the boto patch here.

commit 43c58529e931187175e67c8cfd005c68dcd33a83
Date: Mon Jul 4 17:50:09 2011 +0900

    ec2/instance/InstaceAttribute: fix InstanceAttribute

    This patch is needed for euca-describe-instance-attribute.

diff --git a/boto/ec2/instance.py b/boto/ec2/instance.py
index 8c21bad..1fabfab 100644
--- a/boto/ec2/instance.py
+++ b/boto/ec2/instance.py
@@ -378,16 +378,20 @@ class InstanceAttribute(dict):

     def __init__(self, parent=None):
         dict.__init__(self)
- self._current_value = None
+ self.block_deice_mapping = None
+ self.groups = []

     def startElement(self, name, attrs, connection):
+ if name == 'blockDeviceMapping':
+ self['block_device_mapping'] = BlockDeviceMapping()
+ return self['block_device_mapping']
+ elif name == 'groupSet':
+ self.groups = ResultSet([('item', Group)])
+ return self.groups
         return None

     def endElement(self, name, value, connection):
- if name == 'value':
- self._current_value = value
- else:
- self[name] = self._current_value
+ self[name] = value

 class StateReason(dict):

Revision history for this message
Isaku Yamahata (yamahata) wrote :
Revision history for this message
Isaku Yamahata (yamahata) wrote :

the patch for boto to make euca-describe-instance-attribute work

Daniel Nurmi (nurmi)
Changed in euca2ools:
assignee: nobody → Mitch Garnaat (mitch-garnaat)
Revision history for this message
Andy Grimm (agrimm) wrote :

This issue is now being tracked upstream at http://eucalyptus.atlassian.net/browse/TOOLS-102

Please watch that issue for further updates.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.