[PATCH 1/2] Fixup getDeviceBy* methods

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

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

---
 pyanaconda/storage/devicetree.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 5c789b0..93f4dd4 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -2035,6 +2035,7 @@ class DeviceTree(object):
                 found = device
                 break
 
+        log_method_return(self, found)
         return found
 
     def getDeviceByUuid(self, uuid):
@@ -2050,6 +2051,7 @@ class DeviceTree(object):
                 found = device
                 break
 
+        log_method_return(self, found)
         return found
 
     def getDevicesBySerial(self, serial):
@@ -2060,6 +2062,8 @@ class DeviceTree(object):
                 continue
             if device.serial == serial:
                 devices.append(device)
+
+        log_method_return(self, devices)
         return devices
 
     def getDeviceByLabel(self, label):
@@ -2076,6 +2080,7 @@ class DeviceTree(object):
                 found = device
                 break
 
+        log_method_return(self, found)
         return found
 
     def getDeviceByName(self, name):
@@ -2103,6 +2108,7 @@ class DeviceTree(object):
             log_method_return(self, None)
             return None
 
+        found = None
         leaf = None
         other = None
         for device in self._devices:
-- 
1.7.6.5

_______________________________________________
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