Skip to content

[BUG] Expected role dependencies to be a list. #989

@dvic

Description

@dvic

I noticed you have a symlink in meta/requirements.yml, but I get this error:

Starting galaxy role install process
- changing role konstruktoid.hardening from v4.0.1 to v4.0.1
- extracting konstruktoid.hardening to /Users/dvic/Development/devops/.ansible/roles/konstruktoid.hardening
- konstruktoid.hardening (v4.0.1) was installed successfully
[ERROR]: Expected role dependencies to be a list. Role konstruktoid.hardening (v4.0.1) has meta/requirements.yml {'collections': [{'name': 'ansible.posix', 'version': '2.1.0', 'source': 'https://github.com/ansible-collections/ansible.posix.git', 'type': 'git'}, {'name': 'community.crypto', 'version': '3.0.3', 'source': 'https://github.com/ansible-collections/community.crypto.git', 'type': 'git'}, {'name': 'community.general', 'version': '11.1.2', 'source': 'https://github.com/ansible-collections/community.general.git', 'type': 'git'}]}

When I make it a list then it works: qdentity@c3bbc8f

You did not encounter this error? Is the fix correct? (I can make a PR if needed)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions