Fix check_jobs_documented linter
If autoroles is used to document all roles - which is not the case in this repo but in opendev/base-jobs, the linter would complain about missing roles. Fix the linter to not complain. This change is here to sync the two variants and avoid others that copy it to run into the problem. Change-Id: I25411157ff18858e4f4c121a6d3f0ba6ec793be0
This commit is contained in:
parent
a4cf5ca07e
commit
38902dbba8
@ -132,7 +132,8 @@ r = Roles()
|
|||||||
d = Docs()
|
d = Docs()
|
||||||
|
|
||||||
ret = 0
|
ret = 0
|
||||||
for role in r.roles:
|
if not d.autoroles:
|
||||||
|
for role in r.roles:
|
||||||
if role not in d.roles:
|
if role not in d.roles:
|
||||||
print("Role %s not included in document tree" % (role,))
|
print("Role %s not included in document tree" % (role,))
|
||||||
ret = 1
|
ret = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user