summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-04 10:05:04 -0500
committerChris Lumens <clumens@redhat.com>2009-03-04 15:33:27 -0500
commit4b45614b8b822f3a30270191501b15387af41ac2 (patch)
tree9bc09f477b608912ccaa67801135ce44a865b5db /network.py
parenta87612a0deddc4fc160b13175e5c68f7717201da (diff)
downloadanaconda-4b45614b8b822f3a30270191501b15387af41ac2.tar.gz
anaconda-4b45614b8b822f3a30270191501b15387af41ac2.tar.xz
anaconda-4b45614b8b822f3a30270191501b15387af41ac2.zip
Fix testing for whether a device requires networking.
There's no more isNetdev method, so we'll have to use the type of the object as a test instead.
Diffstat (limited to 'network.py')
-rw-r--r--network.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/network.py b/network.py
index 3531de999..4a2eca9d5 100644
--- a/network.py
+++ b/network.py
@@ -585,8 +585,9 @@ class Network:
# tell NM not to touch the interface(s) actually used for /, but we
# have no logic to determine that
if anaconda is not None:
+ import storage
rootdev = anaconda.id.storage.fsset.rootDevice
- if rootdev.isNetdev:
+ if isinstance(rootdev, storage.devices.NetworkDevice):
f.write("NM_CONTROLLED=no\n")
f.close()