Bug #36970
closedhammer repository info doesn't return content counts for AC repos
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2251019
Description of problem:
`hammer repository info` command doesn't return content counts for ansible collection repos.
Version-Release number of selected component (if applicable):
Any Katello with ansible collections repos
How reproducible:
always
Steps to Reproduce:
1. Sync some AC repo (I used galaxy.ansible.com and this requirement: {collections: [{'name': 'theforeman.foreman', 'version': '2.1.0'}, {'name': 'theforeman.operations', 'version': '0.1.0'}]} )
2. run hammer repository info --id <repo-id>
Actual results:
[root@kat ~]# hammer repository info --id 87
Id: 87
Name: AC repo
Label: AC_repo
Description:
Organization: Default Organization
Red Hat Repository: no
Content Type: ansible_collection
Content Label: Default_Organization_AC_prod_AC_repo
Mirroring Policy: Content Only
Url: https://galaxy.ansible.com/
Publish Via HTTP: yes
Published At: https://katello.example.com/pulp_ansible/galaxy/Default_Organization/Library/custom/AC_prod/AC_repo/api/
Relative Path: Default_Organization/Library/custom/AC_prod/AC_repo
Download Policy:
HTTP Proxy:
HTTP Proxy Policy: global_default_http_proxy
Product:
Id: 307
Name: AC prod
GPG Key:
Sync:
Status: Success
Last Sync Date: 2 minutes
Created: 2023/11/22 10:44:39
Updated: 2023/11/22 10:44:40
Content Counts:
<----------- nothing to see here
Expected results:
...
Sync:
Status: Success
Last Sync Date: 2 minutes
Created: 2023/11/22 10:44:39
Updated: 2023/11/22 10:44:40
Content Counts:
Ansible Collections: 2 <---------------
Additional info:
Other content-types work just fine:
Content Counts:
Packages: 32842
Source RPMS: 0
Package Groups: 59
Errata: 3191
Module Streams: 716
Content Counts:
Files: 3
Content Counts:
Container Image Manifest Lists: 32
Container Image Manifests: 214
Container Image Tags: 53