Merge "Use a shortcut to configure function"
This commit is contained in:
commit
8dba332c52
|
@ -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):
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue