Skip to content

Commit

Permalink
Merge sa2ajj/buildbot:fix-misc-latent-slave (PR #1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Aug 3, 2014
2 parents 6189bb8 + c42cd1b commit e6d1bdd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions master/buildbot/buildslave/ec2.py
Expand Up @@ -25,14 +25,16 @@
import re
import time

import boto
import boto.ec2
import boto.exception
try:
import boto
except ImportError:
boto = None

from twisted.internet import defer
from twisted.internet import threads
from twisted.python import log

from buildbot import config
from buildbot import interfaces
from buildbot.buildslave.base import AbstractLatentBuildSlave

Expand Down Expand Up @@ -62,6 +64,10 @@ def __init__(self, name, password, instance_type, ami=None,
placement=None, price_multiplier=1.2, tags={}, retry=1,
retry_price_adjustment=1, product_description='Linux/UNIX'):

if not boto:
config.error("The python module 'boto' is needed to use a "
"EC2LatentBuildSlave")

AbstractLatentBuildSlave.__init__(
self, name, password, max_builds, notify_on_missing,
missing_timeout, build_wait_timeout, properties, locks)
Expand Down
2 changes: 1 addition & 1 deletion master/buildbot/ec2buildslave.py
Expand Up @@ -20,7 +20,7 @@

deprecatedModuleAttribute(Version("Buildbot", 0, 8, 8),
"It has been moved to buildbot.buildslave.ec2",
"buildbot.libvirtbuildslave", "EC2LatentBuildSlave")
"buildbot.ec2buildslave", "EC2LatentBuildSlave")

_hush_pyflakes = [
EC2LatentBuildSlave,
Expand Down
2 changes: 1 addition & 1 deletion master/docs/manual/customization.rst
Expand Up @@ -368,7 +368,7 @@ Writing a new latent buildslave should only require subclassing :class:`buildbot
# Callback value is ignored.
raise NotImplementedError

See :class:`buildbot.ec2buildslave.EC2LatentBuildSlave` for an example, or see the test example :class:`buildbot.test_slaves.FakeLatentBuildSlave`.
See :class:`buildbot.buildslave.ec2.EC2LatentBuildSlave` for an example.

Custom Build Classes
--------------------
Expand Down

0 comments on commit e6d1bdd

Please sign in to comment.