Bug 122965 (TB07957224)

Summary: Conf.py:1125:__setitem__:TypeError: cannot concatenate 'str' and 'NoneType' objects
Product: Red Hat Enterprise Linux 3 Reporter: Ben Levenson <benl>
Component: redhat-config-networkAssignee: Harald Hoyer <harald>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: katzj
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: 2004-09-02 03:15:48 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:
Bug Depends On:    
Bug Blocks: 86560    

Description Ben Levenson 2004-05-10 19:26:17 UTC
Description of problem:
I get the following traceback while trying to save my network 
configuration on s390/s390x.  It doesn't seem to matter what part
of the networking services I am editing: 

Component: redhat-config-network
Version: 1.2.59
Summary: TB07957224 Conf.py:1125:__setitem__:TypeError: cannot
concatenate 'str' and 'NoneType' objects
Traceback (most recent call last):
  File
"/usr/src/build/328505-noarch/install/usr/share/redhat-config-network/netconfpkg/gui/maindialog.py",
line 747, in on_applyButton_clicked
  File
"/usr/src/build/328505-noarch/install/usr/share/redhat-config-network/netconfpkg/gui/maindialog.py",
line 338, in save
  File
"/usr/src/build/328505-noarch/install/usr/share/redhat-config-network/netconfpkg/gui/maindialog.py",
line 366, in saveHardware
  File
"/usr/src/build/328505-noarch/install/usr/share/redhat-config-network/netconfpkg/NCHardwareList.py",
line 689, in save
  File
"/usr/src/build/328505-noarch/install/usr/share/redhat-config-network/netconfpkg/plugins/NCHWEthernet.py",
line 44, in save
  File "/usr/lib64/python2.2/site-packages/rhpl/Conf.py", line 1125,
in __setitem__
    replace = key + ' ' + varname + ' ' + endofline
TypeError: cannot concatenate 'str' and 'NoneType' objects
                                                                     
                    
Local variables in innermost frame:
findexp: ^[      ]*alias[        ]+eth0[         ]+
place: 0
key: alias
missing: 1
varname: eth0
self: <netconfpkg.NCHardwareList.MyConfModules instance at 0x80bb1038>
value: {'alias': None, 'post-install': [], 'options': {},
'pre-remove': [], 'keep': 0}
endofline: None
.live.[root@kryten Testing]# rpm -q rhpl
rhpl(0:0.110-1).s390x


Version:
1.2.59-1

/etc/modules.conf:
alias eth0 qeth
options dasd_mod dasd=2438

Comment 1 Jay Turner 2004-09-02 03:15:48 UTC
An errata has been issued which should help the problem 
described in this bug report. This report is therefore being 
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, 
please follow the link below. You may reopen this bug report 
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-318.html