Merge "Ignore __pycache__ directory when looking at roles"

This commit is contained in:
Zuul 2020-11-10 23:01:41 +00:00 committed by Gerrit Code Review
commit ca54cdca93

View File

@ -194,6 +194,8 @@ class ZuulDirective(Directive):
for p in os.listdir(d): for p in os.listdir(d):
if not os.path.isdir(os.path.join(d, p)): if not os.path.isdir(os.path.join(d, p)):
continue continue
if p in ('__pycache__',):
continue
role_readme = os.path.join(d, p, 'README.rst') role_readme = os.path.join(d, p, 'README.rst')
if os.path.exists(role_readme): if os.path.exists(role_readme):
roles[p] = role_readme roles[p] = role_readme