mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xend: Replace tabs with 8 whitespaces in DevController.py
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
dd8e0a08e0
commit
b19760e244
1 file changed
+15
-15
@@ -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
|
||||
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
|
||||
# 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))
|
||||
|
||||
|
||||