libcloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From or...@apache.org
Subject svn commit: r915435 - /incubator/libcloud/trunk/libcloud/drivers/softlayer.py
Date Tue, 23 Feb 2010 17:04:55 GMT
Author: oremj
Date: Tue Feb 23 17:04:55 2010
New Revision: 915435

URL: http://svn.apache.org/viewvc?rev=915435&view=rev
Log:
softlayer clean up

Modified:
    incubator/libcloud/trunk/libcloud/drivers/softlayer.py

Modified: incubator/libcloud/trunk/libcloud/drivers/softlayer.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/softlayer.py?rev=915435&r1=915434&r2=915435&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/softlayer.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/softlayer.py Tue Feb 23 17:04:55 2010
@@ -27,16 +27,9 @@
 
 class SoftLayerTransport(xmlrpclib.Transport):
     user_agent = "libcloud/%s (SoftLayer)" % libcloud.__version__
-#   def request(self, host, handler, request_body, verbose=0):
-#        print request_body
-#        xmlrpclib.Transport.request(self, host, handler, request_body, verbose)
-
- #   def _parse_response(self, file, sock):
- #       print file.read()
- #       xmlrpclib.Transport.request(self, file, sock)
 
 class SoftLayerProxy(xmlrpclib.ServerProxy):
-    def __init__(self, service, verbose=1):
+    def __init__(self, service, verbose=0):
         xmlrpclib.ServerProxy.__init__(
             self,
             uri="%s/%s" % (API_PREFIX, service),
@@ -52,7 +45,7 @@
         self.key = key 
 
     def request(self, service, method, *args):
-        sl = SoftLayerProxy(service, 1)
+        sl = SoftLayerProxy(service)
         params = [self._get_auth_param(service)] + list(args)
         return getattr(sl, method)(*params)
 



Mime
View raw message