Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requirements.yml #15752

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

AlaEddineDhaoui
Copy link

@AlaEddineDhaoui AlaEddineDhaoui commented Jan 16, 2025

Each collection should have a "name" key.

Possible Error :
==> ERROR! Collections requirement entry should contain the key name.

SUMMARY

the name key is required for each collection entry in the YAML file for Ansible to properly recognize and process the collections

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API
  • UI
  • Collection
  • CLI
  • Docs
  • Other
AWX VERSION

ADDITIONAL INFORMATION

Each collection should have a "name" key.

Possible Error : 
==> ERROR! Collections requirement entry should contain the key name.
@@ -1,6 +1,7 @@
---
collections:
- source: ./awx_collection
- name : awx_collection
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the right name. I expect this is usually running with it packaged as awx.awx.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's

Suggested change
- name : awx_collection
- name: awx.awx

But really, using both source and name isn't typically necessary: https://docs.ansible.com/ansible/latest/collections_guide/collections_installing.html#installing-a-collection-from-source-files.

@djyasin
Copy link
Member

djyasin commented Jan 29, 2025

@AlaEddineDhaoui, thank you for your contribution! We would be happy to merge your contribution with the addition of @webknjaz's comment. Would you mind adding that commit and rebasing? Once that is done we can check on any failing CI.

Thank you for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants