Bug 1075705

Summary: yum-config-manager --save doesn't work
Product: Red Hat Enterprise Linux 6 Reporter: Karel Srot <ksrot>
Component: yum-utilsAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.5CC: peljasz, vmukhame
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yum-utils-1.1.30-23.el6 Doc Type: Bug Fix
Doc Text:
Cause: run "yum-config-manager --setopt='debuglevel=9' --save" Consequence: crash Fix: patch was added to fix the crash Result: no crash
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 04:38:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Srot 2014-03-12 15:56:24 UTC
Description of problem:

# yum-config-manager --setopt='debuglevel=9' --save
...
...
timeout = 30.0
tolerant = True
tsflags = 
username = 

Traceback (most recent call last):
  File "/usr/bin/yum-config-manager", line 154, in <module>
    writeRawConfigFile(fn, 'main', ybc.conf.yumvar,
AttributeError: 'YumConf' object has no attribute 'conf'


And nothing is saved. 

yum-utils-1.1.30-17.el6_5.noarch


Expected behavior:

  yum-config-manager options:
    --save              save the current options (useful with --setopt)

Comment 1 Valentina Mukhamedzhanova 2014-03-12 16:30:53 UTC
There is an upstream fix http://yum.baseurl.org/gitweb?p=yum-utils.git;a=commitdiff;h=2aac1b1c8b3f5ada029d6772ee6f9bb7c63be172

Comment 4 Valentina Mukhamedzhanova 2014-05-28 13:55:34 UTC
*** Bug 1102105 has been marked as a duplicate of this bug. ***

Comment 7 errata-xmlrpc 2014-10-14 04:38:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1411.html