Bug 232285

Summary: Can't open saved ks.cfg
Product: [Fedora] Fedora Reporter: Steve Magoun <smagoun>
Component: system-config-kickstartAssignee: Chris Lumens <clumens>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
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: 2007-03-15 14:07:04 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 Steve Magoun 2007-03-14 18:38:01 UTC
Description of problem:
system-config-kickstart can't open files it creates if the file contains the @base group in the %packages 
section.


Version-Release number of selected component (if applicable):
system-config-kickstart-2.7.3-1.fc7


How reproducible:
Always

Steps to Reproduce:
1. Launch system-config-kickstart
2. Select "Perform new installation" from Installation Method (required because of bug 232282)
3. Under Package Selection, choose only Base System->Base
4. Save the file
5. Open the saved file
  
Actual results:
I get a dialog box with error information:

Component: system-config-kickstart
Summary: TBf4165d19 packages.py:234:<lambda>:AttributeError: Group instance has no attribute 
'__getitem__'

Traceback (most recent call last):
  File "/usr/share/system-config-kickstart/kickstartGui.py", line 308, in on_activate_open
    self.applyKickstart()
  File "/usr/share/system-config-kickstart/kickstartGui.py", line 340, in applyKickstart
    self.packages_class.applyKickstart()
  File "/usr/share/system-config-kickstart/packages.py", line 234, in applyKickstart
    selectedGroups = map (lambda grp: grp[1], self.ks.packages.groupList)
  File "/usr/share/system-config-kickstart/packages.py", line 234, in <lambda>
    selectedGroups = map (lambda grp: grp[1], self.ks.packages.groupList)
AttributeError: Group instance has no attribute '__getitem__'

Local variables in innermost frame:
grp: @base



Expected results:
Kickstart file is loaded without errors


Additional info:

Comment 1 Chris Lumens 2007-03-15 14:07:04 UTC
Looks like more fallout from the switch to the new pykickstart.  This will be
fixed in the next build.  Thanks for the report.