diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-22 21:20:57 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-22 21:20:57 +0000 |
commit | 0444ed16b0de3b0c72391293e8c8e7a56afc03a7 (patch) | |
tree | cff1931a5b501dd0e1678f9677933b09e9e22be7 /todo.py | |
parent | 7cd860c5049cefb5e1a17fe0803dc771b37f51ff (diff) | |
download | anaconda-0444ed16b0de3b0c72391293e8c8e7a56afc03a7.tar.gz anaconda-0444ed16b0de3b0c72391293e8c8e7a56afc03a7.tar.xz anaconda-0444ed16b0de3b0c72391293e8c8e7a56afc03a7.zip |
don't copy blank network information from the install class -- just stick
with what we got
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -368,6 +368,7 @@ class ToDo: self.madeFilesystems = 0 self.installSystem = installSystem self.language = Language () + self.log = LogFile () self.network = Network () self.rootpassword = Password () self.extraModules = extraModules @@ -380,7 +381,6 @@ class ToDo: self.ddruid = None; self.drives = Drives () self.badBlockCheck = 0 - self.log = LogFile () self.bootdisk = 0 self.liloImages = {} self.liloDevice = None @@ -1134,21 +1134,21 @@ class ToDo: (bootProto, ip, netmask, gateway, nameserver) = \ todo.instClass.getNetwork() - - todo.network.gateway = gateway - todo.network.primaryNS = nameserver - - devices = todo.network.available () - if (devices and bootProto): - list = devices.keys () - list.sort() - dev = devices[list[0]] - dev.set (("bootproto", bootProto)) - - if (ip): - dev.set (("ipaddr", ip)) - if (netmask): - dev.set (("netmask", netmask)) + if bootProto: + todo.network.gateway = gateway + todo.network.primaryNS = nameserver + + devices = todo.network.available () + if (devices and bootProto): + list = devices.keys () + list.sort() + dev = devices[list[0]] + dev.set (("bootproto", bootProto)) + + if (ip): + dev.set (("ipaddr", ip)) + if (netmask): + dev.set (("netmask", netmask)) if (todo.instClass.mouse): (type, device, emulateThreeButtons) = todo.instClass.mouse |