Project

General

Profile

Actions

Bug #11784

closed

Hammer content-view remove-version does not work

Added by Greg Koch over 9 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Trying to remove a content-view version by version number fails with error message "content_view_version found more than once"

hammer content-view remove-version --name <content-view-name>  --organization-id 1 --content-view-version <version-number>

Attempting to use Version IDs appears to work, returning with message "The component version has been removed" and creating a task to update the content view (Actions::Katello::ContentView::Update). The task completes without error, but the version still appears in the Katello UI and when using Hammer content-view info

hammer content-view remove-version --name <content-view-name>  --organization-id 1 --content-view-version-id <version-id>

Task raw input:

{"content_view"=>{"id"=>104, "name"=>"xxxxx-cv", "label"=>"xxxxx-cv"},
 "organization"=>{"id"=>1, "name"=>"xxxxxxxx", "label"=>"xxxxxxxx"},
 "locale"=>"en"}

We are using Katello 2.3

Actions

Also available in: Atom PDF