Skip to content

Commit

Permalink
Fix role FQCN mangling. (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Jan 7, 2022
1 parent 71e5e8c commit 76fa98d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/379-collection-enum-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "Fix bug in collection enum for docs generation, which caused role FQCNs to be mangled (https://github.com/ansible-community/antsibull/pull/379)."
2 changes: 1 addition & 1 deletion src/antsibull/data/collection-enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def load_all_roles(RoleMixin, basedir, coll_filter): # pylint:disable=unused-ar
roles = role_mixin._find_all_collection_roles()
result = {}
for role_name, collection_name, collection_path in roles:
fqcn = f'{role_name}.{collection_name}'
fqcn = f'{collection_name}.{role_name}'
if match_filter(fqcn, coll_filter):
role_data = load_role(role_mixin, role_name, collection_name, collection_path)
if role_data['ansible-doc'] is None:
Expand Down

0 comments on commit 76fa98d

Please sign in to comment.