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
1 changed files with 2 additions and 0 deletions

View File

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