Bug 1480485

Summary: module enable/disable no stderr
Product: [Fedora] Fedora Reporter: Irina Gulina <igulina>
Component: dnfAssignee: Martin Hatina <mhatina>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: dmach, mhatina, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-14 07:32:18 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:    
Bug Blocks: 1478068    

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