FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 12-22-2011, 07:13 PM
David Lehman
 
Default 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-06-2012, 07:15 PM
David Lehman
 
Default 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

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

Thread Tools




All times are GMT. The time now is 07:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org