Fix some typos
TrivialFix Change-Id: I610f53bf725d071994379cef8205fd483510ebd4
This commit is contained in:
parent
8fed623c83
commit
8b66649089
|
@ -246,7 +246,7 @@ class EResourceOperation(InternalError):
|
|||
so on. And the op 'creating', 'updating' and 'deleting' we can
|
||||
use separately class `EResourceCreation`,`EResourceUpdate` and
|
||||
`EResourceDeletion`.
|
||||
The type here is resource's dirver type.It can be 'server',
|
||||
The type here is resource's driver type.It can be 'server',
|
||||
'stack', 'container' and so on.
|
||||
The id is resource's id.
|
||||
The message here can be message from class 'ResourceNotFound',
|
||||
|
|
|
@ -373,7 +373,7 @@ class Map(PropertySchema):
|
|||
|
||||
sub_schema = self.schema
|
||||
if sub_schema is not None:
|
||||
# sub_schema shoud be a dict here.
|
||||
# sub_schema should be a dict here.
|
||||
subspec = Spec(sub_schema, dict(values))
|
||||
subspec.validate()
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ class Action(object):
|
|||
self.owner = kwargs.get('owner', None)
|
||||
|
||||
# An action may need to be executed repeatitively, interval is the
|
||||
# time in seconds between two consequtive execution.
|
||||
# time in seconds between two consecutive execution.
|
||||
# A value of -1 indicates that this action is only to be executed once
|
||||
self.interval = kwargs.get('interval', -1)
|
||||
|
||||
|
|
|
@ -266,7 +266,7 @@ class HealthManager(service.Service):
|
|||
"""Unregister a cluster from health checking.
|
||||
|
||||
:param ctx: The context of notify request.
|
||||
:param cluster_id: The ID of the cluste to be unregistered.
|
||||
:param cluster_id: The ID of the cluster to be unregistered.
|
||||
:return: None
|
||||
"""
|
||||
for i in range(len(self.rt['registries']) - 1, -1, -1):
|
||||
|
|
|
@ -1898,7 +1898,7 @@ class EngineService(service.Service):
|
|||
:param policy: The ID, name or short ID of the target policy.
|
||||
:param enabled: Optional parameter specifying whether the policy is
|
||||
enabled when attached.
|
||||
:return: A dictionary containg the ID of the action fired.
|
||||
:return: A dictionary contains the ID of the action fired.
|
||||
"""
|
||||
LOG.info(_LI("Attaching policy (%(policy)s) to cluster "
|
||||
"(%(cluster)s)."),
|
||||
|
@ -1937,7 +1937,7 @@ class EngineService(service.Service):
|
|||
:param context: An instance of request context.
|
||||
:param identity: The ID, name or short ID of the target cluster.
|
||||
:param policy: The ID, name or short ID of the target policy.
|
||||
:return: A dictionary containg the ID of the action fired.
|
||||
:return: A dictionary contains the ID of the action fired.
|
||||
"""
|
||||
LOG.info(_LI("Detaching policy '%(policy)s' from cluster "
|
||||
"'%(cluster)s'."),
|
||||
|
@ -1981,7 +1981,7 @@ class EngineService(service.Service):
|
|||
:param policy: The ID, name or short ID of the target policy.
|
||||
:param enabled: Optional parameter specifying whether the policy is
|
||||
enabled after the update.
|
||||
:return: A dictionary containg the ID of the action fired.
|
||||
:return: A dictionary contains the ID of the action fired.
|
||||
"""
|
||||
LOG.info(_LI("Updating policy '%(policy)s' on cluster '%(cluster)s.'"),
|
||||
{'policy': policy, 'cluster': identity})
|
||||
|
|
|
@ -29,7 +29,7 @@ oslo_i18n._translate_msgid = fake_translate_msgid
|
|||
eventlet.monkey_patch(os=False)
|
||||
|
||||
# The following has to be done after eventlet monkey patching or else the
|
||||
# threading.locl() store used in oslo_messaging will be initialized to
|
||||
# threading.local() store used in oslo_messaging will be initialized to
|
||||
# thread-local storage rather than green-thread local. This will cause context
|
||||
# sets and deletes in that storage to clobber each other.
|
||||
# Make sure we have all objects loaded. This is done at module import time,
|
||||
|
|
|
@ -484,7 +484,7 @@ class DBAPIEventTest(base.SenlinTestCase):
|
|||
node1_1 = shared.create_node(self.ctx, cluster1, self.profile)
|
||||
node_orphan = shared.create_node(self.ctx, None, self.profile)
|
||||
|
||||
# prune 1: cluste events
|
||||
# prune 1: cluster events
|
||||
self.create_event(self.ctx, entity=cluster1)
|
||||
self.create_event(self.ctx, entity=cluster1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue