Bug 1264045

Summary: yum-config-manager --enable non-existent-repo doesn't fail
Product: Red Hat Enterprise Linux 7 Reporter: Eva Mrakova <emrakova>
Component: yum-utilsAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WONTFIX QA Contact: Eva Mrakova <emrakova>
Severity: low Docs Contact:
Priority: low    
Version: 7.2CC: dmach, lpramuk, mdomonko, qe-baseos-security, vmukhame
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1110267 Environment:
Last Closed: 2018-09-24 12:03:53 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:
Bug Depends On: 1110267    
Bug Blocks:    

Description Eva Mrakova 2015-09-17 11:49:19 UTC
Also happens for
yum-utils-1.1.31-32.el7.noarch

+++ This bug was initially created as a clone of Bug #1110267 +++

Description of problem:
When you run yum-config-manager --enable non-existent-repo, it returns with 0.
It should fail instead.

Version-Release number of selected component (if applicable):
yum-utils-1.1.30-14.el6.noarch

How reproducible:
100%

Steps to Reproduce:

1.# yum-config-manager --enable WTF
Loaded plugins: product-id

2.# echo $?
0

Actual results:
illusory success, return code=0

Expected results:
fail, non-zero return code

Comment 6 Red Hat Bugzilla Rules Engine 2018-09-24 12:03:53 UTC
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.