[PATCH 3/6] Make udev_get_block_device() return None on failure

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

 



udev_get_block_device() was returning a fake "empty" dict on failure,
but all its callers expect it to return None on failure.
---
 storage/udev.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/udev.py b/storage/udev.py
index 6dba824..f6347d5 100644
--- a/storage/udev.py
+++ b/storage/udev.py
@@ -97,7 +97,7 @@ def udev_enumerate_block_devices():
 def udev_get_block_device(sysfs_path):
     dev = udev_get_device(sysfs_path)
     if not dev or not dev.has_key("name"):
-        return {"name": None, "symlinks": []}
+        return None
     else:
         return dev
 
-- 
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