[PATCH master] Don't display "None" for NIC vendors and products we can't identify (#859540)
Radek Vykydal
rvykydal at redhat.com
Thu Oct 11 08:15:14 UTC 2012
---
pyanaconda/ui/gui/spokes/network.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 27266ff..8752502 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -545,8 +545,8 @@ class NetworkControlBox():
title = '<span size="large">%s (%s%s)</span>' % (self._dev_type_str(device),
device.get_iface(),
unplugged)
- title += '\n<span size="small">%s %s</span>' % (device.get_vendor(),
- device.get_product())
+ title += '\n<span size="small">%s %s</span>' % (device.get_vendor() or "",
+ device.get_product() or "")
return title
def _dev_type_str(self, device):
--
1.7.4
More information about the anaconda-patches
mailing list