[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 6/8] 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.
---
 network.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/network.py b/network.py
index 3531de9..4a2eca9 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()
-- 
1.6.1.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]