Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit fcb1935

Browse files
Bheesham Persaudbrson
Bheesham Persaud
authored andcommitted
Added a check to switch between BuildStatus and BuilderStatus.
Refs #5
1 parent 015b616 commit fcb1935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

master/master.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -1654,10 +1654,10 @@ from buildbot.status.web import authz, auth
16541654
import passwords
16551655
reload(passwords)
16561656

1657-
def userAuth(username, builder_status):
1657+
def userAuth(username, bs):
16581658
if username == "any-build":
16591659
return True
1660-
if "dist" in builder_status.getName():
1660+
if (hasattr(bs, 'getName') and "dist" in bs.getName()) or (hasattr(bs, 'getBuilder') and "dist" in bs.getBuilder().getName()):
16611661
return False
16621662
return True
16631663

0 commit comments

Comments
 (0)