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 > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-03-2012, 11:57 AM
Radek Vykydal
 
Default Network spoke: fix unplugged info in device list

Don't report unplugged for plugged unmanaged (NM) devices.
---
pyanaconda/ui/gui/spokes/network.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index daf4246..e2ec2e7 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -544,7 +544,8 @@ class NetworkControlBox():

def _dev_title(self, device):
unplugged = '
- if (device.get_device_type() == NetworkManager.DeviceType.ETHERNET
+ if (device.get_state() == NetworkManager.DeviceState.UNAVAILABLE
+ and device.get_device_type() == NetworkManager.DeviceType.ETHERNET
and not device.get_carrier()):
# Translators: ethernet cable is unplugged
unplugged = ', <i>%s</i>' % _("unplugged")
--
1.7.7.5

_______________________________________________
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 06:59 AM.

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