Remove commented out broken code from LoopDevice.status.
---
pyanaconda/storage/devices.py | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index ad07842..8306d9e 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -3625,9 +3625,6 @@ class LoopDevice(StorageDevice):
@property
def status(self):
- #return (self.sysfsPath and
- # os.path.isdir("/sys" + self.sysfsPath) and
- # len(os.listdir("/sys" + self.sysfsPath + '/holders')) > 0)
return (self.slave.status and
self.name.startswith("loop") and
loop.get_loop_name(self.slave.path) == self.name)
--
1.7.2.3
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|