Project

General

Profile

Bug #26059

hammer repository upload-content help has product name and id options that do not work

Added by Melanie Corr over 1 year ago. Updated 9 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
-
Difficulty:
trivial
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

[root@dell-r330-13 ~]# hammer repository upload-content --help
Usage:
hammer repository upload-content [OPTIONS]

Options:
--id ID Repository ID
--name NAME Repository name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--path PATH Upload file, directory of files, or glob of files as content for a repository.
Globs must be escaped by single or double quotes
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID Product numeric identifier
-h, --help Print help

History

#1 Updated by Melanie Corr over 1 year ago

  • Assignee deleted (Melanie Corr)

Melanie Corr wrote:

[root@dell-r330-13 ~]# hammer repository upload-content --help
Usage:
hammer repository upload-content [OPTIONS]

Options:
--id ID Repository ID
--name NAME Repository name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--path PATH Upload file, directory of files, or glob of files as content for a repository.
Globs must be escaped by single or double quotes
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID Product numeric identifier
-h, --help Print help

On testing, we received errors if we added a product name and id

[root@dell-r330-13 ~]# hammer repository upload-content --id 104 --product "MEL" --organization-label Default_Organization --path gdal-1.11.4-10.rhel7.x86_64.rpm
Could not upload the content:
Error: Cannot specify both product options and repository ID.

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

Adding a --product-id doesn't work

[root@dell-r330-13 ~]# hammer repository upload-content --id 104 --product-id 247 --organization-label Default_Organization --path gdal-1.11.4-10.rhel7.x86_64.rpm
Could not upload the content:
Error: Cannot specify both product options and repository ID.

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

#2 Updated by Martin Bacovsky over 1 year ago

  • Category set to Hammer
  • Project changed from Hammer CLI to Katello

#3 Updated by Chris Roberts over 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.12.0
  • Assignee set to Chris Roberts
  • Status changed from New to Assigned

#4 Updated by Chris Roberts about 1 year ago

  • Target version changed from Katello 3.12.0 to Katello Backlog

#5 Updated by Partha Aji 9 months ago

  • Status changed from Assigned to Closed

This was more a documentation issue. "--id" without the '--product-id' options will work. The downstream documentation has been updated to reflect this.

#6 Updated by Justin Sherrill 9 months ago

  • Target version deleted (Katello Backlog)

#7 Updated by Justin Sherrill 9 months ago

  • Status changed from Closed to Rejected

Also available in: Atom PDF