summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2012-10-10 16:02:18 +0200
committerRadek Vykydal <rvykydal@redhat.com>2012-10-12 14:13:16 +0200
commitafd8c41851cd3be3ae6ada5b5a2e6ffc26d758f0 (patch)
treefe183a7d60a2d911355308926d037debda3e94c8
parent87873949fc08cb0f30a3463091a214766dc571c9 (diff)
downloadanaconda-afd8c41851cd3be3ae6ada5b5a2e6ffc26d758f0.tar.gz
anaconda-afd8c41851cd3be3ae6ada5b5a2e6ffc26d758f0.tar.xz
anaconda-afd8c41851cd3be3ae6ada5b5a2e6ffc26d758f0.zip
Don't display "None" for NIC vendors and products NM can't identify (#859540)
-rw-r--r--pyanaconda/ui/gui/spokes/network.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 39b320e6a..0767b2e52 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -547,8 +547,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):