You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by je...@apache.org on 2010/12/24 23:11:56 UTC
svn commit: r1052723 -
/incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py
Author: jerry
Date: Fri Dec 24 22:11:55 2010
New Revision: 1052723
URL: http://svn.apache.org/viewvc?rev=1052723&view=rev
Log:
Remove extraneous JSON dump/load in CloudSigmaResponse.parse_body
Modified:
incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py
Modified: incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py?rev=1052723&r1=1052722&r2=1052723&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py Fri Dec 24 22:11:55 2010
@@ -160,15 +160,7 @@ class CloudSigmaResponse(Response):
if not self.body:
return self.body
- listdata = str2dicts(self.body)
- dd = json.dumps(listdata)
-
- try:
- data = json.loads(dd)
- except:
- raise MalformedResponseError("Failed to parse JSON", body=dd, driver=CloudSigmaBaseNodeDriver)
-
- return listdata
+ return str2dicts(self.body)
def parse_error(self):
return 'Error: %s' % (self.body.replace('errors:', '').strip())