summaryrefslogtreecommitdiffstats
path: root/vnc.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-09-23 17:31:45 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-09-24 16:09:22 -1000
commit92d658eaebb801c7467716f183d32b0dae6c9499 (patch)
tree558af7d4e43d08ee1e7ed923b4cb5af724da7b6d /vnc.py
parentaf8c639754dcc81f34652b29bcf5e3a90b1d6863 (diff)
downloadanaconda-92d658eaebb801c7467716f183d32b0dae6c9499.tar.gz
anaconda-92d658eaebb801c7467716f183d32b0dae6c9499.tar.xz
anaconda-92d658eaebb801c7467716f183d32b0dae6c9499.zip
Get rid of firstnetdevice in Network
At least for now, I see no need for firstnetdevice in the same way before we started using NetworkManager. Might have to come back for specific cases, but I don't think it's necessary.
Diffstat (limited to 'vnc.py')
-rw-r--r--vnc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/vnc.py b/vnc.py
index 7010411c6..37833040b 100644
--- a/vnc.py
+++ b/vnc.py
@@ -101,7 +101,10 @@ class VncServer:
# Look for the first configured interface and use its IP address for
# the computer to connect to.
- dev = netinfo.getFirstDeviceName()
+ devices = netinfo.netdevices
+ list = devices.keys()
+ list.sort()
+ dev = devices[list[0]]
try:
self.ip = isys.getIPAddress(dev)