direct-io.hg

changeset 11582:332bdaab35fa

[XEND] Remove hard tabs from destroyDevice()
Reported by Hollis Blanchard.

Signed-off-by: Alastair Tse <atse@xensource.com>
author atse@norwich.uk.xensource.com
date Fri Sep 22 15:56:19 2006 +0100 (2006-09-22)
parents 1db4e40b4d83
children e6388ec26a97
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri Sep 22 15:36:11 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Sep 22 15:56:19 2006 +0100
     1.3 @@ -1098,15 +1098,16 @@ class XendDomainInfo:
     1.4      ## public:
     1.5  
     1.6      def destroyDevice(self, deviceClass, devid):
     1.7 -	if type(devid) is str:
     1.8 -	    devicePath = '%s/device/%s' % (self.dompath, deviceClass)
     1.9 -	    for entry in xstransact.List(devicePath):
    1.10 -		backend = xstransact.Read('%s/%s' % (devicePath, entry), "backend")
    1.11 -		devName = xstransact.Read(backend, "dev")
    1.12 -		if devName == devid:
    1.13 -		    # We found the integer matching our devid, use it instead
    1.14 -		    devid = entry
    1.15 -        	    break
    1.16 +        if type(devid) is str:
    1.17 +            devicePath = '%s/device/%s' % (self.dompath, deviceClass)
    1.18 +            for entry in xstransact.List(devicePath):
    1.19 +                backend = xstransact.Read('%s/%s' % (devicePath, entry),
    1.20 +                                          "backend")
    1.21 +                devName = xstransact.Read(backend, "dev")
    1.22 +                if devName == devid:
    1.23 +                    # We found the integer matching our devid, use it instead
    1.24 +                    devid = entry
    1.25 +                    break
    1.26          return self.getDeviceController(deviceClass).destroyDevice(devid)
    1.27  
    1.28