GitHub user Jc2k opened a pull request:
https://github.com/apache/libcloud/pull/85
LIBCLOUD-169: Refactor AWS connection and response to reduce code
duplication
As promised in the elb pr, here is a follow up patch to reduce code
duplication. I haven't run pep8 over it yet, but the tests pass. I'm AFK for a
few days, but wanted to at least get something up here.
I think this error parsing can be applied to the EC2 backend too but wanted
to get some feedback on the general approach first.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Jc2k/libcloud refactor-aws-response
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/85.patch
----
commit e8320dbb1e7c4b85f95b52ca933fca756bab8312
Author: John Carr <[email protected]>
Date: 2013-01-07T02:09:21Z
Pull shared ec2/elb connection code into AWS common code
commit 29e17a6245256f94471d0df55600d134a008f434
Author: John Carr <[email protected]>
Date: 2013-01-07T02:48:00Z
Shared error parsing
----