Merge "Use a shortcut to configure function"

This commit is contained in:
Jenkins 2016-07-12 10:59:07 +00:00 committed by Gerrit Code Review
commit 8dba332c52
2 changed files with 3 additions and 8 deletions

View File

@ -22,6 +22,8 @@ from rally.common.plugin import plugin
from rally.common import sshutils
from rally.common import utils
configure = plugin.configure
class Server(utils.ImmutableMixin):
"""Represent information about created Server.
@ -91,10 +93,6 @@ class ResourceManager(object):
self.deployment.delete_resource(resource_id)
def configure(name, namespace="default"):
return plugin.configure(name, namespace=namespace)
@plugin.base()
@six.add_metaclass(abc.ABCMeta)
class ProviderFactory(plugin.Plugin):

View File

@ -32,6 +32,7 @@ from rally.task import utils
LOG = logging.getLogger(__name__)
configure = plugin.configure
def format_result_on_timeout(exc, timeout):
@ -97,10 +98,6 @@ def _log_worker_info(**info):
LOG.debug("Starting a worker.\n\t%s" % info_message)
def configure(name, namespace="default"):
return plugin.configure(name=name, namespace=namespace)
@plugin.base()
class ScenarioRunner(plugin.Plugin):
"""Base class for all scenario runners.