[PATCH 2/2] Avoid writing out NAME= in ifcfg files (#497485)

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

 



Not really necessary in the ifcfg files, so avoid writing out this value
in network.py.
---
 network.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/network.py b/network.py
index 3f4b0ee..087f8c5 100644
--- a/network.py
+++ b/network.py
@@ -247,7 +247,7 @@ class NetworkDevice(SimpleConfigFile):
             keys.remove("KEY")
 
         for key in keys:
-            if key in ("NM_CONTROLLED"):
+            if key in ("NM_CONTROLLED", "NAME"):
                 continue
             # make sure we include autoneg in the ethtool line
             elif key == 'ETHTOOL_OPTS' and self.info[key].find("autoneg")== -1:
-- 
1.6.2.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux