Bug 1130551

Summary: hammer doesn't accept arbitrary order of arguments
Product: Red Hat Satellite Reporter: Pavel Studeník <pstudeni>
Component: ProvisioningAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: bkearney, dcleal
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/7123
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-13 20:04:01 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: 1128090    

Description Pavel Studeník 2014-08-15 14:05:24 UTC
Description of problem:
I try to use hammer and I don't know what is correct order of arguments.

for example: 

>> hammer -p changeme -u admin --csv content-host list --organization-id 1 
ID,Name
7097a1fc-713f-429c-bf99-6914a79243e4,cisco-c210-01.rhts.eng.bos.redhat.com

>> hammer --csv -p changeme -u admin content-host list --organization-id 1 
[Foreman] password for admin: 
(empty result)

>> hammer --password changeme -u admin content-host list --organization-id 1 --csv
Error: Unrecognised option '--csv'

See: 'hammer content-host list --help'

Version-Release number of selected component (if applicable):
rubygem-hammer_cli_katello-0.0.4-10.el6sat.noarch
rubygem-hammer_cli-0.1.1-11.el6sat.noarch
rubygem-hammer_cli_foreman-0.1.1-15.el6sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-3.el6sat.noarch

How reproducible:
always

Actual results:
Magic with ordering arguments

Expected results:
Accept arbitrary order of arguments

Comment 1 RHEL Program Management 2014-08-15 14:23:19 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Tomas Strachota 2014-08-18 08:17:55 UTC
Created redmine issue http://projects.theforeman.org/issues/7123 from this bug

Comment 4 Bryan Kearney 2015-08-25 18:00:13 UTC
Upstream bug component is Provisioning

Comment 5 Bryan Kearney 2016-07-08 20:42:58 UTC
Per 6.3 planning, moving out non acked bugs to the backlog

Comment 7 Bryan Kearney 2017-01-13 20:04:01 UTC
This is an older bug which has been reported upstream. We are not going to track this bug downstream. When the upstream issue is resolved, the next build will contain the fix. Thank you.