Project

General

Profile

Bug #15540

Unable to remove repo content using repo name through hammer

Added by Andrew Kofink almost 3 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1349646
Description of problem:

Unable to remove content from a custom repo using the repo name.

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

How reproducible:
Try to remove content repo content using repo name

Steps to Reproduce:
1. hammer repository remove-content --name test --content-ids 12345 --organization-id X
2. Same command works if name is substituted by the repository id
3. hammer repository remove-content --id Y --content-ids 12345 --organization-id X

Actual results:
Could not remove content:
Error: Unknown option name 'option_product_name'

Expected results:
Repository content removed

Associated revisions

Revision 8fb2c439 (diff)
Added by Andrew Kofink almost 3 years ago

Fixes #15540 - Allow repo name in remove-content (#415)

The `--name` option now resolves the repository id when removing content
from a custom repository.

The ID resolver for repository_id no longer requires product options.

History

#1 Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/415 added

#2 Updated by Anonymous almost 3 years ago

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

#3 Updated by Andrew Kofink almost 3 years ago

  • Assignee set to Andrew Kofink

#4 Updated by Justin Sherrill almost 3 years ago

  • Assignee deleted (Andrew Kofink)
  • Legacy Backlogs Release (now unused) set to 143

Also available in: Atom PDF