Open
Description
Script clean_content_views.py fails in Red Hat Satellite 6.5 with the following error code:
Cleaning content view 'All Repositories'
Traceback (most recent call last):
File "./clean_content_views.py", line 348, in <module>
main(sys.argv[1:])
File "./clean_content_views.py", line 341, in main
cleanup(ver_list, ver_descr, dry_run, runuser, ver_keep, cleanall, ignorefirstpromoted)
File "./clean_content_views.py", line 144, in cleanup
version_in_use, version_in_ccv = check_version_views(version['id'])
File "./clean_content_views.py", line 93, in check_version_views
if viewlist['katello_content_views']:
KeyError: 'katello_content_views'
Seems issue is in line 94. Tested quering API at https://localhost/katello/api/v2/content_view_versions/id and the list doesn't contain an attribute katello_content_views.