txawsteam team mailing list archive
-
txawsteam team
-
Mailing list archive
-
Message #00042
[Bug 415486] Re: Missing reservation representation
Merged 415486-reservation-object [r=therve,lifeless,jkakar] [f=415486]
This change adds a missing object representation for AWS reservations parsed
from Amazon EC2 API call "describeInstances". Instead of mimicking the data
structure of the response XML, a developer-friendly optimization was
implemented where the reservation is available on the instance, and it is the
instances which are returned.
** Changed in: txaws
Status: In Progress => Fix Committed
--
Missing reservation representation
https://bugs.launchpad.net/bugs/415486
You received this bug notification because you are a member of txAWS
Team, which is the registrant for txAWS.
Status in txAWS: Twisted Amazon: Fix Committed
Bug description:
Currently, txaws.ec2.client.EC2Client.describe_instances doesn't return an accurate representation of an XML instance response from Amazon. In particular, descibe_instances' callback (_parse_reservation) only returns the instance information (from the "instanceSet" XML tag). Instead of a list of instance objects, _parse_reservation should probably return a list of reservation objects.
In order to do this, a Reservation object needs to be created. This object should have the following attributes:
* reservation_id
* owner_id
* groups
* instances
References