You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ansible-playbook -i inventories playbook-satellite-content.yml --diff --tags=katello_cleanup -e "foreman_cleanup_content=true" -e "foreman_content_view_version_cleanup_keep=0"
...
TASK [theforeman.foreman.content_view_version_cleanup : Delete unused composite content view versions] *******************************************************************************************************************************************************************
Friday 23 February 2024 11:27:52 +0100 (0:00:02.368) 0:00:10.594 *******
fatal: [satellite]: FAILED! => {"msg": "The conditional check '(__foreman_ccv.versions | rejectattr('environment_ids') | map(attribute='version') | reverse | list)[foreman_content_view_version_cleanup_keep:]' failed. The error was: Unexpected templating type error occurred on ({% if (__foreman_ccv.versions | rejectattr('environment_ids') | map(attribute='version') | reverse | list)[foreman_content_view_version_cleanup_keep:] %} True {% else %} False {% endif %}): slice indices must be integers or None or have an __index__ method. slice indices must be integers or None or have an __index__ method\n\nThe error appears to be in '/home/smeeus/.ansible/collections/ansible_collections/theforeman/foreman/roles/content_view_version_cleanup/tasks/main.yml': line 19, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: \"Delete unused composite content view versions\"\n ^ here\n"}
The text was updated successfully, but these errors were encountered:
SUMMARY
content_view_version_cleanup role fails with error 'slice indices must be integers or None or have an index method'
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
KATELLO/FOREMAN VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
Cleanup of unused content views
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: