Bug 1541332 - [modularity] info for more args fails just after the first unknown arg
Summary: [modularity] info for more args fails just after the first unknown arg
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 28
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1478068
TreeView+ depends on / blocked
 
Reported: 2018-02-02 10:14 UTC by Eva Mrakova
Modified: 2018-11-22 18:23 UTC (History)
5 users (show)

Fixed In Version: dnf-4.0.4
Clone Of:
Environment:
Last Closed: 2018-11-22 18:23:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Eva Mrakova 2018-02-02 10:14:08 UTC
Description of problem:

when 'dnf module info' has more arguments, it exits with error immediately after processing the first unknown argument (or insufficiently specified one).

So
$ dnf module info <Module-OK> <Module-not-OK>
provides info about <Module-OK> and then exits with an error
while 
$ dnf module info <Module-not-OK> <Module-OK>
only exits with (the same) error.

Behaviour of 'dnf info' is different, it always shows info about all known arguments.

Version-Release number of selected component (if applicable):

How reproducible:
always

Steps to Reproduce:
1. create and enable a module (e.g. ModuleX)
2. run 
   $ dnf module info ModuleX non-existent-module
   $ dnf module info non-existent-module ModuleX

Actual results:

# dnf module info ModuleX non-existent-module
<snip>
Name        : ModuleX
Stream      : f26
Version     : 1
Profiles    : default
Repo        : modularityX
Summary     : Module ModuleX summary
Description : Module ModuleX description
Artifacts   : TestX-1-1.modX.noarch

Error: No such module: non-existent-module
# dnf module info non-existent-module ModuleX
<snip>
Error: No such module: non-existent-module

Expected results:

the results of the two commands are consistent, 
either info for all known args is shown (and unknown args are reported)
or only the same error for both cases is reported (and no info is provided)

Additional info:

there are more dnf module subcommands with similar behaviour as described here for info, e.g. enable and disable

Comment 1 Fedora End Of Life 2018-02-20 15:32:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.


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