diff options
author | Chris Lumens <clumens@redhat.com> | 2006-02-14 17:55:54 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-02-14 17:55:54 +0000 |
commit | e859025153412b0bca1aea8c6de1cfefcd4fd40f (patch) | |
tree | f288ef9eb9a92f56594587464a72fba584248c9d /vnc.py | |
parent | 13a5677623cb005adf00b9776e9ad2420f15e797 (diff) | |
download | anaconda-e859025153412b0bca1aea8c6de1cfefcd4fd40f.tar.gz anaconda-e859025153412b0bca1aea8c6de1cfefcd4fd40f.tar.xz anaconda-e859025153412b0bca1aea8c6de1cfefcd4fd40f.zip |
Move hasActiveNetDev frmo vnc to network.
Diffstat (limited to 'vnc.py')
-rw-r--r-- | vnc.py | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -23,25 +23,9 @@ import isys import logging log = logging.getLogger("anaconda") -def hasActiveNetDev(): - # try to load /tmp/netinfo and see if we can sniff out network info - netinfo = network.Network() - for dev in netinfo.netdevices.keys(): - try: - ip = isys.getIPAddress(dev) - except Exception, e: - log.error("Got an exception trying to get the ip addr of %s: " - "%s" %(dev, e)) - continue - if ip == '127.0.0.1' or ip is None: - continue - return True - return False - - # return -1 to use text mode, None for no vncpass, or vncpass otherwise def askVncWindow(): - if hasActiveNetDev() == False: + if network.hasActiveNetDev() == False: return -1 screen = SnackScreen() |