Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Marketing (http://www.linux-archive.org/fedora-marketing/)
-   -   Do not sort settings in ifcfg file. (http://www.linux-archive.org/fedora-marketing/447149-do-not-sort-settings-ifcfg-file.html)

Radek Vykydal 11-02-2010 02:44 PM

Do not sort settings in ifcfg file.
 
There is no point in doing that.
---
pyanaconda/network.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 2a9870b..2c83ffe 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -222,10 +222,6 @@ class NetworkDevice(IfcfgFile):
def __str__(self):
s = ""
keys = self.info.keys()
- keys.sort()
- if ("DEVICE" in keys):
- keys.remove("DEVICE")
- keys.insert(0, "DEVICE")
if iutil.isS390() and ("HWADDR" in keys):
keys.remove("HWADDR")
# make sure we include autoneg in the ethtool line
--
1.7.2

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


All times are GMT. The time now is 10:04 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.