[blivet][rhel7-branch] Pass a list of string items to log_method_return. (#1155984)
Samantha N. Bueno
sbueno+anaconda at redhat.com
Wed Oct 29 17:59:50 UTC 2014
Otherwise there is some serious lagging in the UI when you select/de-select
a disk in the anaconda storage spoke.
Resolves: rhbz#1155984
---
blivet/devicetree.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index a5310b7..8173e93 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -2298,7 +2298,7 @@ class DeviceTree(object):
continue
if device.serial == serial:
retval.append(device)
- log_method_return(self, retval)
+ log_method_return(self, [r.name for r in retval])
return retval
def getDeviceByLabel(self, label, incomplete=False, hidden=False):
@@ -2376,7 +2376,7 @@ class DeviceTree(object):
log_method_call(self, device_type=device_type, incomplete=incomplete, hidden=hidden)
devices = self._filterDevices(incomplete=incomplete, hidden=hidden)
result = [d for d in devices if d.type == device_type]
- log_method_return(self, result)
+ log_method_return(self, [r.name for r in result])
return result
def getDevicesByInstance(self, device_class, incomplete=False, hidden=False):
@@ -2391,7 +2391,7 @@ class DeviceTree(object):
log_method_call(self, device_class=device_class, incomplete=incomplete, hidden=hidden)
devices = self._filterDevices(incomplete=incomplete, hidden=hidden)
result = [d for d in devices if isinstance(d, device_class)]
- log_method_return(self, result)
+ log_method_return(self, [r.name for r in result])
return result
def getDeviceByID(self, id_num, incomplete=False, hidden=False):
--
1.9.3
More information about the anaconda-patches
mailing list