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 %} {% set deps = meta.dependencies.value %}
{% endif %} {% endif %}
{% for item in deps %} {% for item in deps %}
- {{ item }} {% if item is string or item.role %}
- {{ item if item is string else item.role }}
{% endif %}
{% endfor %} {% endfor %}
{% else %} {% else %}
None. None.

View File

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

View File

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