libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject svn commit: r1052700 - in /incubator/libcloud/trunk/libcloud/drivers: cloudsigma.py elastichosts.py gogrid.py linode.py
Date Fri, 24 Dec 2010 21:50:19 GMT
Author: jerry
Date: Fri Dec 24 21:50:18 2010
New Revision: 1052700

URL: http://svn.apache.org/viewvc?rev=1052700&view=rev
Log:
valueError -> ValueError, removed unused vars as reported by pyflakes

Modified:
    incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py
    incubator/libcloud/trunk/libcloud/drivers/elastichosts.py
    incubator/libcloud/trunk/libcloud/drivers/gogrid.py
    incubator/libcloud/trunk/libcloud/drivers/linode.py

Modified: incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py?rev=1052700&r1=1052699&r2=1052700&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/cloudsigma.py Fri Dec 24 21:50:18 2010
@@ -579,7 +579,6 @@ def str2dicts(data):
     d = list_data[-1]
 
     lines = data.split('\n')
-    lines_count = len(lines)
     for line in lines:
         line = line.strip()
 
@@ -623,7 +622,7 @@ def str2list(data):
 
         try:
             splitted = line.split(' ')
-            key = splitted[0]
+            # key = splitted[0]
             value = splitted[1]
         except Exception:
             continue

Modified: incubator/libcloud/trunk/libcloud/drivers/elastichosts.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/elastichosts.py?rev=1052700&r1=1052699&r2=1052700&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/elastichosts.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/elastichosts.py Fri Dec 24 21:50:18 2010
@@ -22,7 +22,7 @@ import base64
 
 from libcloud.types import Provider, NodeState, InvalidCredsError, MalformedResponseError
 from libcloud.base import ConnectionUserAndKey, Response
-from libcloud.base import NodeDriver, NodeSize, Node, NodeAuthPassword
+from libcloud.base import NodeDriver, NodeSize, Node
 from libcloud.base import NodeImage
 from libcloud.deployment import ScriptDeployment, SSHKeyDeployment, MultiStepDeployment
 
@@ -453,7 +453,7 @@ class ElasticHostsBaseNodeDriver(NodeDri
 
         if (image in STANDARD_DRIVES
             and STANDARD_DRIVES[image]['supports_deployment']):
-            raise valueError('Image %s does not support deployment'
+            raise ValueError('Image %s does not support deployment'
                              % (image.id))
 
         if enable_root:

Modified: incubator/libcloud/trunk/libcloud/drivers/gogrid.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/gogrid.py?rev=1052700&r1=1052699&r2=1052700&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/gogrid.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/gogrid.py Fri Dec 24 21:50:18 2010
@@ -213,7 +213,7 @@ class GoGridNodeDriver(NodeDriver):
                   passwords_map[password['server']['id']] = password['password']
               except KeyError:
                   pass
-        except InvalidCredsError, e:
+        except InvalidCredsError:
           # some gogrid API keys don't have permission to access the password list.
           pass
 

Modified: incubator/libcloud/trunk/libcloud/drivers/linode.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/linode.py?rev=1052700&r1=1052699&r2=1052700&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/linode.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/linode.py Fri Dec 24 21:50:18 2010
@@ -470,7 +470,7 @@ class LinodeNodeDriver(NodeDriver):
             "LinodeID":         linode["id"],
             "ConfigID":         linode["config"]
         }
-        unused = self.connection.request(LINODE_ROOT, params=params)
+        self.connection.request(LINODE_ROOT, params=params)
 
         # Make a node out of it and hand it back
         params = { "api_action": "linode.list", "LinodeID": linode["id"] }



Mime
View raw message