Bug 1264045 - yum-config-manager --enable non-existent-repo doesn't fail
yum-config-manager --enable non-existent-repo doesn't fail
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum-utils (Show other bugs)
7.2
Unspecified Unspecified
low Severity low
: rc
: ---
Assigned To: Valentina Mukhamedzhanova
Eva Mrakova
:
Depends On: 1110267
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-17 07:49 EDT by Eva Mrakova
Modified: 2017-09-27 23:21 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1110267
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Eva Mrakova 2015-09-17 07:49:19 EDT
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

Note You need to log in before you can comment on or make changes to this bug.