Project

General

Profile

Bug #26059

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

Added by Melanie Corr 4 months ago. Updated 2 months ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
trivial
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
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 4 months 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 4 months ago

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

#3 Updated by Chris Roberts 4 months 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 2 months ago

  • Target version changed from Katello 3.12.0 to Katello Backlog

Also available in: Atom PDF