Skip to content

Commit

Permalink
Pass bytes to InMemoryUsernamePasswordDatabaseDontUse
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigc committed Jul 12, 2017
1 parent acba191 commit 68c69a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions master/buildbot/manhole.py
Expand Up @@ -36,6 +36,7 @@
from buildbot import config
from buildbot.util import ComparableMixin
from buildbot.util import service
from buildbot.util import unicode2bytes

try:
from twisted.conch import checkers as conchc, manhole_ssh
Expand Down Expand Up @@ -226,7 +227,7 @@ def __init__(self, port, username, password):
self.password = password

c = checkers.InMemoryUsernamePasswordDatabaseDontUse()
c.addUser(username, password)
c.addUser(unicode2bytes(username), unicode2bytes(password))

_BaseManhole.__init__(self, port, c, using_ssh=False)

Expand Down Expand Up @@ -258,7 +259,7 @@ def __init__(self, port, username, password):
self.password = password

c = checkers.InMemoryUsernamePasswordDatabaseDontUse()
c.addUser(username, password)
c.addUser(unicode2bytes(username), unicode2bytes(password))

_BaseManhole.__init__(self, port, c)

Expand Down

0 comments on commit 68c69a9

Please sign in to comment.