Bug 1096320

Summary: hammer product info does not accept --id argument
Product: Red Hat Satellite Reporter: Elyézer Rezende <erezende>
Component: HammerAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bbuckingham, cwelton, jmontleo, kbidarka, tstrachota
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/5829
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:06:41 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:

Description Elyézer Rezende 2014-05-09 16:16:24 UTC
Description of problem:
When trying to get information about a product the hammer product info command does not accept the --id argument

Version-Release number of selected component (if applicable):
# hammer --version
hammer (0.1.0)
 * hammer_cli_foreman (0.1.0)
 * hammer_cli_katello (0.0.3)


How reproducible:
Aways


Steps to Reproduce:
1. hammer product info --id=<product_id> --organization-id=<org_id>

Actual results:
The command fail with the error: Error: Unrecognised option '--id'

Expected results:
The command accepts the --id argument and show the product information

Additional info:
hammer product info help does not show any other argument except -h, --help

# hammer product info --help
Usage:
    hammer product info [OPTIONS]

Options:
    -h, --help                    print help

Comment 3 Brad Buckingham 2014-05-20 15:43:40 UTC
Created redmine issue http://projects.theforeman.org/issues/5829 from this bug

Comment 4 Bryan Kearney 2014-05-27 14:06:05 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/5829 has been closed

Comment 6 Kedar Bidarkar 2014-05-29 08:23:09 UTC
Tested with sat6-beta-snap7


[root@xxxxx ~]# hammer product info --id=4 --organization-id=1
ID:           4
Name:         RHEL6
Label:        RHEL6
Description:  
Sync State:   finished
Sync Plan ID: 
GPG:          
    GPG Key ID: 
    GPG Key:
Organization: ACME_Corporation
Readonly:     false
Deletable:    false
Content:      
 1) Repo Name: RHEL65_x86_64
    URL:       /custom/RHEL6/RHEL65_x86_64

Comment 7 Bryan Kearney 2014-07-02 14:06:41 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.