Bug 218274

Summary: Traceback when writing kickstart repo data
Product: Red Hat Enterprise Linux 5 Reporter: Bastien Nocera <bnocera>
Component: pykickstartAssignee: Chris Lumens <clumens>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: jlaska, pgraner, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RC Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-08 01:16:49 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:
Attachments:
Description Flags
pykickstart-repodata.patch none

Description Bastien Nocera 2006-12-04 11:12:14 UTC
pykickstart 0.41-1

When using pykickstart to write a dynamic kickstart, a traceback occurs:
Traceback (most recent call last):
 File "test.py", line 11, in ?
   print pykickstart.writer.KickstartWriter(ksdata).write()
 File "/usr/lib/python2.4/site-packages/pykickstart/writer.py", line 48, in write
   map (lambda fn: fn(), self.handlers)), "\n")
 File "/usr/lib/python2.4/site-packages/pykickstart/writer.py", line 48, in <lambda>
   map (lambda fn: fn(), self.handlers)), "\n")
 File "/usr/lib/python2.4/site-packages/pykickstart/writer.py", line 454, in doRepo
   retval = retval + "repo --name=%s %s\n" % (repo["name"], urlopt)
AttributeError: KickstartRepoData instance has no attribute '__getitem__'

Patch from Panu Matilainen <Panu.Matilainen> attached

Comment 1 Bastien Nocera 2006-12-04 11:12:14 UTC
Created attachment 142722 [details]
pykickstart-repodata.patch

Comment 2 RHEL Program Management 2006-12-04 11:30:24 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Chris Lumens 2006-12-04 16:15:02 UTC
This is easy, but I'll have to rebase pykickstart again in the RHEL5 tree.

Comment 4 James Laska 2006-12-05 15:58:57 UTC
What else does rebasing pull in?

Comment 5 Chris Lumens 2006-12-05 16:03:51 UTC
If I rebuild today, nothing.  If I wait a couple days, translation updates.

Comment 6 Chris Lumens 2006-12-05 17:03:08 UTC
Rebuilt pykickstart-0.42-1 and submitted a move request.

Comment 8 RHEL Program Management 2007-02-08 01:16:49 UTC
A package has been built which should help the problem described in 
this bug report. This report is therefore being closed with a resolution 
of CURRENTRELEASE. You may reopen this bug report if the solution does 
not work for you.