Bug 1096320 - hammer product info does not accept --id argument
Summary: hammer product info does not accept --id argument
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Kedar Bidarkar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-09 16:16 UTC by Elyézer Rezende
Modified: 2019-09-26 14:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:06:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 5829 0 None None None 2016-04-22 15:14:52 UTC

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.


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