Bug 1672718 - Hammer CLI Guide Section 2.3.4 Hammer upload content error
Summary: Hammer CLI Guide Section 2.3.4 Hammer upload content error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Documentation
Version: 6.4.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: Melanie Corr
QA Contact: Sergei Petrosian
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-05 16:56 UTC by Chuck Mead
Modified: 2019-09-26 17:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-25 11:02:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chuck Mead 2019-02-05 16:56:45 UTC
Description of problem: the hammer cli guide provides a command example to upload a file into a custom product. The example shown will not run as written.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
root@rchplvsetinf55a RedCloak]# hammer repository upload-content --product "SecureWorks RedCloak" --organization-label Santander --id "118" --path /var/www/html/pub/RedCloak/RED_CLOAK_Linux_1.2.5.5_All_Modules.rpm

Could not upload the content:

  Error: Cannot specify both product options and repository ID.

 

  See: 'hammer repository upload-content --help'.

Expected results:

 hammer repository upload-content --organization-label Santander --id "118" --path /var/www/html/pub/RedCloak/RED_CLOAK_Linux_1.2.5.5_All_Modules.rpm

Successfully uploaded file 'RED_CLOAK_Linux_1.2.5.5_All_Modules.rpm'


Additional info: as can be seen in the above examples the use of the product label is unsupported in this command

https://access.redhat.com/documentation/en-us/red_hat_satellite/6.4/html/hammer_cli_guide/chap-cli_guide-organizations_locations_repositories#sect-CLI_Guide-Creating_a_Custom_Repository

Comment 1 Melanie Corr 2019-02-05 17:04:04 UTC
Thank you for opening this ticket!

Comment 6 Melanie Corr 2019-02-15 18:03:58 UTC
Created https://projects.theforeman.org/issues/26059 to update this upstream


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