Skip to content

Commit

Permalink
no need for NewCredPerspective in buildbot.buildslave
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Aug 15, 2010
1 parent 75e8b3e commit 84a3209
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions master/buildbot/buildslave.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
from twisted.python import log
from twisted.internet import defer, reactor
from twisted.application import service
import twisted.spread.pb
from twisted.spread import pb

from buildbot.pbutil import NewCredPerspective
from buildbot.status.builder import SlaveStatus
from buildbot.status.mail import MailNotifier
from buildbot.interfaces import IBuildSlave, ILatentBuildSlave
Expand All @@ -20,7 +19,7 @@
if sys.version_info[:3] < (2,4,0):
from sets import Set as set

class AbstractBuildSlave(NewCredPerspective, service.MultiService):
class AbstractBuildSlave(pb.Avatar, service.MultiService):
"""This is the master-side representative for a remote buildbot slave.
There is exactly one for each slave described in the config file (the
c['slaves'] list). When buildbots connect in (.attach), they get a
Expand Down Expand Up @@ -473,7 +472,7 @@ def shutdown(self):
# it's because the connection was lost, that means the slave
# shutdown as expected.
def _errback(why):
if why.check(twisted.spread.pb.PBConnectionLost):
if why.check(pb.PBConnectionLost):
log.msg("Lost connection to %s" % self.slavename)
else:
log.err("Unexpected error when trying to shutdown %s" % self.slavename)
Expand Down

0 comments on commit 84a3209

Please sign in to comment.