Bug 439718 (TBe93ef273)

Summary: TBe93ef273 Conf.py:998:__setitem__:TypeError: coercing to Unicode: need string or buffer, NoneType found
Product: [Fedora] Fedora Reporter: Andrew Farris <lordmorgul>
Component: system-config-networkAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: jim, jmoskovc, knolderpoor
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-31 12:43:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrew Farris 2008-03-30 22:41:26 UTC
Description of problem:
Saving settings changes in system-config-network fails with unicode error.

Summary: TBe93ef273 Conf.py:998:__setitem__:TypeError: coercing to Unicode: need
string or buffer, NoneType found

Version-Release number of selected component (if applicable):
system-config-network-1.5.3-1.fc9.noarch

How reproducible:
every time

Steps to Reproduce:
1. edit eth0 configuration, change dhcp -> static, set NM managed
2. click save

Actual results:
traceback, settings not saved

Expected results:
saved settings changes

Additional info:
Component: system-config-network
Version: 1.5.3
Summary: TBe93ef273 Conf.py:998:__setitem__:TypeError: coercing to Unicode: need
string or buffer, NoneType found

Traceback (most recent call last):
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line
831, in on_applyButton_clicked
    self.save()
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line
392, in save
    self.saveHardware()
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line
420, in saveHardware
    hardwarelist.save()
  File "/usr/share/system-config-network/netconfpkg/NCHardwareList.py", line
700, in save
    hw.save()
  File "/usr/share/system-config-network/netconfpkg/plugins/NCHWEthernet.py",
line 44, in save
    modules[self.Name] = dic
  File "/usr/share/system-config-network/netconfpkg/conf/Conf.py", line 998, in
__setitem__
    replace = key + ' ' + varname + ' ' + endofline
TypeError: coercing to Unicode: need string or buffer, NoneType found

Local variables in innermost frame:
findexp: ^[	 ]*alias[	 ]+eth1[	 ]+
missing: 1
varname: eth1
self: <netconfpkg.NCHardwareList.MyConfModules instance at 0x9ca6e4c>
value: {'alias': None}
place: 0
key: alias
endofline: None

Comment 1 Harald Hoyer 2008-03-31 12:43:56 UTC
system-config-network-1.5.4

Comment 2 Harald Hoyer 2008-03-31 15:10:27 UTC
real fix in system-config-network-1.5.5

Comment 4 Harald Hoyer 2008-04-02 12:47:17 UTC
*** Bug 440222 has been marked as a duplicate of this bug. ***

Comment 5 Dean Mander 2008-04-02 13:18:23 UTC
works for me. Thanks.