Bug 1480485 - module enable/disable no stderr
module enable/disable no stderr
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
26
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Martin Hatina
Fedora Extras Quality Assurance
:
Depends On:
Blocks: dnf-modularity
  Show dependency treegraph
 
Reported: 2017-08-11 04:59 EDT by Irina Gulina
Modified: 2017-08-14 03:32 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-14 03:32:18 EDT
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 Irina Gulina 2017-08-11 04:59:52 EDT
Description of problem:

If no package specified with dnf module enable/disable

1) there is no error message. I expect "Package is not specified" and a help/usage page maybe
2) wrong exit status for dnf module disable when no package

[vagrant@fvagrant ~]$ docker exec boltron_container bash -l -c "dnf module disable; echo $?" 
Last metadata expiration check: 16:42:39 ago on Mon Jul 24 16:26:41 2017.
0

[vagrant@fvagrant ~]$ docker exec boltron_container bash -l -c "dnf module enable; echo $?" 
Last metadata expiration check: 16:17:48 ago on Mon Jul 24 16:26:41 2017.
1

Version-Release number of selected component (if applicable):
latest boltron compose 07-17
dnf-2.6.0-3.git.40.c0f7fc6.module_a7788b02.noarch

How reproducible:
always
Comment 1 Martin Hatina 2017-08-14 03:32:18 EDT
Fixed in https://copr.fedorainfracloud.org/coprs/mhatina/DNF-Modules

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