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

[PATCH 2/5] Use Device.__str__ when logging return value of getDeviceByFoo.



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

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index f11ea21..1e25dd1 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -1959,7 +1959,7 @@ class DeviceTree(object):
                 found = device
                 break
 
-        log_method_return(self, found)
+        log_method_return(self, str(found))
         return found
 
     def getDeviceByPath(self, path):
@@ -1978,7 +1978,7 @@ class DeviceTree(object):
                 found = device
                 break
 
-        log_method_return(self, found)
+        log_method_return(self, str(found))
         return found
 
     def getDevicesByType(self, device_type):
-- 
1.7.8


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