diff options
author | Matt Wilson <msw@redhat.com> | 1999-08-24 13:39:56 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-08-24 13:39:56 +0000 |
commit | c34d8542f676ebb6e8f4e0d6f7d8087f87578fed (patch) | |
tree | 8ab7b70ab6fe4d1bfa42370870d11b44db1e7ea3 /todo.py | |
parent | a4336278fc64a0603d20640f43a955649a9b36d3 (diff) | |
download | anaconda-c34d8542f676ebb6e8f4e0d6f7d8087f87578fed.tar.gz anaconda-c34d8542f676ebb6e8f4e0d6f7d8087f87578fed.tar.xz anaconda-c34d8542f676ebb6e8f4e0d6f7d8087f87578fed.zip |
don't double up on localhost.localdomain
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -678,7 +678,10 @@ class ToDo: # /etc/hosts f = open (self.instPath + "/etc/hosts", "w") - f.write ("127.0.0.1\t\tlocalhost.localdomain " + self.network.hostname + "\n") + localline = "127.0.0.1\t\tlocalhost.localdomain " + if self.network.hostname != "localhost.localdomain": + localline = localline + self.network.hostname + f.write (localline + "\n") for dev in self.network.netdevices.values (): ip = dev.get ("ipaddr") if dev.hostname and ip: |