fix: get role name from dependencies in case of a dictionary (#300)

This commit is contained in:
Robert Kaussow 2022-05-17 14:19:31 +02:00 committed by GitHub
parent 9d26ba0238
commit b6a2813114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -9,7 +9,9 @@
{% set deps = meta.dependencies.value %}
{% endif %}
{% for item in deps %}
- {{ item }}
{% if item is string or item.role %}
- {{ item if item is string else item.role }}
{% endif %}
{% endfor %}
{% else %}
None.

View File

@ -153,6 +153,8 @@ demo_role_unset: some_value
## Discovered Tags
**_role-tag1_**
**_role-tag2_**
**_single-tag_**\
@ -167,7 +169,8 @@ demo_role_unset: some_value
## Dependencies
None.
- role1
- role2
## License

View File

@ -16,4 +16,6 @@ galaxy_info:
galaxy_tags:
- demo
- documentation
dependencies: []
dependencies:
- role1
- role: role2