Bug 1480485 - module enable/disable no stderr
Summary: module enable/disable no stderr
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Hatina
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1478068
TreeView+ depends on / blocked
 
Reported: 2017-08-11 08:59 UTC by Irina Gulina
Modified: 2017-08-14 07:32 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-08-14 07:32:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Irina Gulina 2017-08-11 08:59:52 UTC
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 07:32:18 UTC
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.