Skip to contentSkip to conversation

Remove tabs from DevController.py

PATCH New Masaki Kanno 1 participant 1 message Jun 15, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove tabs from DevController.py

Hi,

This patch replaces tab with 8 whitespaces in DevController.py

Best regards,
Kan

tools/python/xen/xend/server/DevController.py +16 -16
diff -r 80eb95dc0dd9 tools/python/xen/xend/server/DevController.py
@@ -213,7 +213,7 @@ class DevController:
         devid = int(devid)
 
         frontpath = self.frontendPath(devid)
-	if frontpath:
+        if frontpath:
             backpath = xstransact.Read(frontpath, "backend")
 
         # Modify online status /before/ updating state (latter is watched by
@@ -224,22 +224,22 @@ class DevController:
         if force:
             if backpath:
                 xstransact.Remove(backpath)
-	    if frontpath:
+            if frontpath:
                 xstransact.Remove(frontpath)
-	    return
-
-	# Wait till both frontpath and backpath are removed from
-	# xenstore, or timed out
-	if frontpath:
-	    status = self.waitUntilDestroyed(frontpath)
-	    if status == Timeout:
-	        # Exception will be caught by destroyDevice in XendDomainInfo.py
-	        raise EnvironmentError
-	if backpath:
-	    status = self.waitUntilDestroyed(backpath)
-	    if status == Timeout:
-	        # Exception will be caught by destroyDevice in XendDomainInfo.py
-	        raise EnvironmentError
+            return
+
+        # Wait till both frontpath and backpath are removed from
+        # xenstore, or timed out
+        if frontpath:
+            status = self.waitUntilDestroyed(frontpath)
+            if status == Timeout:
+                # Exception will be caught by destroyDevice in XendDomainInfo.py
+                raise EnvironmentError
+        if backpath:
+            status = self.waitUntilDestroyed(backpath)
+            if status == Timeout:
+                # Exception will be caught by destroyDevice in XendDomainInfo.py
+                raise EnvironmentError
 
         self.vm._removeVm("device/%s/%d" % (self.deviceClass, devid))
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel