You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/08/13 03:27:41 UTC
svn commit: r985062 - /incubator/libcloud/trunk/libcloud/drivers/ec2.py
Author: pquerna
Date: Fri Aug 13 01:27:41 2010
New Revision: 985062
URL: http://svn.apache.org/viewvc?rev=985062&view=rev
Log:
Use Malformed Response in ec2 driver
Modified:
incubator/libcloud/trunk/libcloud/drivers/ec2.py
Modified: incubator/libcloud/trunk/libcloud/drivers/ec2.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/ec2.py?rev=985062&r1=985061&r2=985062&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/ec2.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/ec2.py Fri Aug 13 01:27:41 2010
@@ -160,9 +160,9 @@ class EC2Response(Response):
raise InvalidCredsError(msg)
try:
- body = ET.XML(self.body)
+ body = ET.XML(self.body)
except:
- raise MalformedResponseError("Failed to parse XML", body=self.body, driver=EC2NodeDriver)
+ raise MalformedResponseError("Failed to parse XML", body=self.body, driver=EC2NodeDriver)
for err in body.findall('Errors/Error'):
code, message = err.getchildren()