libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject svn commit: r920201 - /incubator/libcloud/trunk/libcloud/deployment.py
Date Mon, 08 Mar 2010 06:11:30 GMT
Author: jerry
Date: Mon Mar  8 06:11:29 2010
New Revision: 920201

URL: http://svn.apache.org/viewvc?rev=920201&view=rev
Log:
Standard indentation in MultiStepDeployment

Modified:
    incubator/libcloud/trunk/libcloud/deployment.py

Modified: incubator/libcloud/trunk/libcloud/deployment.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/deployment.py?rev=920201&r1=920200&r2=920201&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/deployment.py (original)
+++ incubator/libcloud/trunk/libcloud/deployment.py Mon Mar  8 06:11:29 2010
@@ -47,16 +47,16 @@
         return node
 
 class MultiStepDeployment(Deployment):
-  def __init__(self, add = None):
-    self.steps = []
-    self.add(add)
+    def __init__(self, add = None):
+        self.steps = []
+        self.add(add)
 
-  def add(self, add):
-    if add is not None:
-      add = add if isinstance(add, (list, tuple)) else [add]
-      self.steps.extend(add)
+    def add(self, add):
+        if add is not None:
+            add = add if isinstance(add, (list, tuple)) else [add]
+            self.steps.extend(add)
 
-  def run(self, node, client):
-    for s in self.steps:
-      node = s.run(node, client)
-    return node
+    def run(self, node, client):
+        for s in self.steps:
+            node = s.run(node, client)
+        return node



Mime
View raw message