[PATCH 5/6] Log when we are skipping disks without media

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/__init__.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index e8b7b52..bb0fbce 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -315,7 +315,10 @@ class Storage(object):
         """
         disks = []
         for device in self.devicetree.devices:
-            if isinstance(device, DiskDevice) and device.mediaPresent:
+            if isinstance(device, DiskDevice):
+                if not device.mediaPresent:
+                    log.info("Skipping disk: %s: No media present" % device.name)
+                    continue
                 disks.append(device)
         disks.sort(key=lambda d: d.name)
         return disks
-- 
1.6.4.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux