-
Bug
-
Resolution: Done
-
Normal
-
2.2.1
-
None
-
False
-
-
False
-
Skip deprecated EE when syncing from registry.redhat.io
-
Bug Fix
-
-
Description
Index Execution Environments on Remote Registry brings Deprecated EE from 2.0 Early Access
Private Automation Hub installed with latest AAP 2.2.1 installer.
Key Dependency Versions
"versions": [ { "component": "core", "version": "3.18.6" }, { "component": "container", "version": "2.10.7" }, { "component": "ansible", "version": "0.13.2" }, { "component": "galaxy", "version": "4.5.2" } ],
Steps to Reproduce
- Add a remote registry for syncing EE from registry.redhat.io
- Sync the remote registry
- Index execution environments
Actual Behavior
Index Execution Environments on Remote Registry brings Deprecated EE from 2.0 Early Access.
Expected Behavior
Index shouldn't download deprecated EE from 2.0 Early Access.
Possible fix below ( also tested on my lab and worked fine).
https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/tasks/index_registry.py#L130-L134
query = { "filter": "build_categories=in=('Automation execution environment') and release_categories=in=('Generally Available')", "page": 0, "sort_by": "creation_date[asc]" }