mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
ansible-doc-test: Ignore role if library directory does not exist.
This change make ansible-doc-test skip processing a role if it does not contain a `library` directory.
This commit is contained in:
@@ -124,7 +124,10 @@ def ansible_doc_test(path, verbose):
|
||||
# All roles and plugins
|
||||
roles = os.listdir("roles/")
|
||||
for _role in roles:
|
||||
if not os.path.isdir("roles/%s" % _role):
|
||||
if (
|
||||
not os.path.isdir("roles/%s" % _role)
|
||||
or not os.path.isdir("roles/%s/library" % _role)
|
||||
):
|
||||
continue
|
||||
modules = os.listdir("roles/%s/library" % _role)
|
||||
for _module in modules:
|
||||
|
||||
Reference in New Issue
Block a user