mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add an "all" category so all modules show up uncategorized there.
This commit is contained in:
parent
1251538e96
commit
c4a8a6d3c2
1 changed files with 2 additions and 1 deletions
|
@ -117,7 +117,7 @@ def write_data(text, options, outputname, module):
|
|||
def list_modules(module_dir):
|
||||
''' returns a hash of categories, each category being a hash of module names to file paths '''
|
||||
|
||||
categories = {}
|
||||
categories = dict(all=dict())
|
||||
files = glob.glob("%s/*" % module_dir)
|
||||
for d in files:
|
||||
if os.path.isdir(d):
|
||||
|
@ -129,6 +129,7 @@ def list_modules(module_dir):
|
|||
if not category in categories:
|
||||
categories[category] = {}
|
||||
categories[category][module] = f
|
||||
categories['all'][module] = f
|
||||
return categories
|
||||
|
||||
#####################################################################################
|
||||
|
|
Loading…
Reference in a new issue