summaryrefslogtreecommitdiffstats
path: root/textw/network_text.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-08-25 12:26:19 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-08-25 12:26:19 -1000
commit8265e6f5887015c9c78a44ccbacdd0c6227a5c83 (patch)
tree4363baa024582c9ec369248d85866cc198635881 /textw/network_text.py
parent57e7079052bec83c6aa0bb327b220d1de908d118 (diff)
downloadanaconda-8265e6f5887015c9c78a44ccbacdd0c6227a5c83.tar.gz
anaconda-8265e6f5887015c9c78a44ccbacdd0c6227a5c83.tar.xz
anaconda-8265e6f5887015c9c78a44ccbacdd0c6227a5c83.zip
Use dbus in hasActiveNetDev() and _anyUsing()
Rewrote the hasActiveNetDev() and _anyUsing() function in network.py to talk to NetworkManager via dbus. Modified the calls in iw/network_gui.py and textw/network_text.py that use these functions.
Diffstat (limited to 'textw/network_text.py')
-rw-r--r--textw/network_text.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index 517a10a72..17f2066be 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -674,7 +674,7 @@ class NetworkGlobalWindow:
# we don't let you set gateway/dns if you've got any interfaces
# using dhcp (for better or worse)
- if network.anyUsingDHCP(devices):
+ if network.anyUsingDHCP():
return INSTALL_NOOP
thegrid = Grid(2, 4)
@@ -775,7 +775,7 @@ class HostnameWindow:
anchorLeft = 1)
# disable the dhcp if we don't have any dhcp
- if network.anyUsingDHCP(devices):
+ if network.anyUsingDHCP():
autoCb.w.checkboxSetFlags(FLAG_DISABLED, FLAGS_RESET)
else:
autoCb.w.checkboxSetFlags(FLAG_DISABLED, FLAGS_SET)