Project

General

Profile

Actions

Bug #21142

closed

Hammer CLI has not option to list File repository content

Added by Brad Buckingham over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1492832

Description of problem:

Missing feature on Support Arbitrary Files within Content Views.

Hammer has 2 commands to respective add and remove fiels to/from a Repository of type file:

1) hammer repository upload-content
2) hammer repository remove-content

For the second one there is a parameter called "ids" where a list of ids of content to be removed can be provided. Besides that there is no way to query a repository for its contents.
The command "hammer repository --id=repo_id" returns no content and has no option to include these data. Thus the user can not rely entirely on CLI to automate tasks.

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

Satellite 6.3 snap 15.

How reproducible:

Always

Steps to Reproduce:
1. Create a product
2. Attach a repository of type file to it
3. Upload a file to repository
4. Run command hammer repository --id=repo_id

Actual results:

No way of access repository content data, specifically their ids.

Expected results:

A way of access repository content data.

Additional info:

On API doc at path /api/v2 there is also no documented endpoint to access repository content data. Besides that content can be queried on api/v2/files?repository_id=query_id.

Actions #1

Updated by Brad Buckingham over 6 years ago

  • Subject changed from Hammer CLI has not option to list repository content to Hammer CLI has not option to list repository content
  • Target version set to 217
Actions #2

Updated by Brad Buckingham over 6 years ago

  • Assignee set to Andrew Kofink
Actions #3

Updated by Justin Sherrill over 6 years ago

  • Subject changed from Hammer CLI has not option to list repository content to Hammer CLI has not option to list File repository content
Actions #4

Updated by Justin Sherrill over 6 years ago

  • translation missing: en.field_release set to 284
Actions #5

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6988 added
Actions #6

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/517 added
Actions #7

Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF