Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Fix due to Katello Bug #23458 #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions cvmanager
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,15 @@ def clean()
else
puts " removing #{version['version']}"
if not @options[:noop]
req = @api.resource(:content_view_versions).call(:destroy, {:id => version['id']})
tasks << req['id']
if @options[:sequential] > 0 and tasks.length >= @options[:sequential]
tasks = wait(tasks)
begin
req = @api.resource(:content_view_versions).call(:destroy, {:id => version['id']})
tasks << req['id']
if @options[:sequential] > 0 and tasks.length >= @options[:sequential]
tasks = wait(tasks)
end
rescue
puts " Impossible to delete version \"#{version['id']}\""
puts " Probably it is locked by a Composite Content View"
end
else
puts " [noop] would delete content view version with id #{version['id']}"
Expand Down