Trivial fix typos

Change-Id: I4c7d3a0d815a616d1ba2c0d26135db5f2aea0c2f
This commit is contained in:
Vu Cong Tuan 2017-05-30 15:54:30 +07:00
parent bd8151e581
commit 35074edaf7
12 changed files with 15 additions and 15 deletions

View File

@ -181,7 +181,7 @@ class JsonPatchType(wtypes.Base):
@staticmethod
def mandatory_attrs():
"""Retruns a list of mandatory attributes.
"""Returns a list of mandatory attributes.
Mandatory attributes can't be removed from the document. This
method should be overwritten by derived class.

View File

@ -55,7 +55,7 @@ def validate_sort_dir(sort_dir):
def validate_search_filters(filters, allowed_fields):
# Very leightweight validation for now
# Very lightweight validation for now
# todo: improve this (e.g. https://www.parse.com/docs/rest/guide/#queries)
for filter_name in filters.keys():
if filter_name not in allowed_fields:

View File

@ -111,7 +111,7 @@ class BaseAction(loadable.Loadable):
def post_condition(self):
"""Hook: called after the execution of an action
This function is called regardless of whether an action succeded or
This function is called regardless of whether an action succeeded or
not. So you can use it to perform cleanup operations.
"""
raise NotImplementedError()

View File

@ -44,10 +44,10 @@ def main():
syncer.sync()
de_service = watcher_service.Service(manager.DecisionEngineManager)
bg_schedulder_service = scheduling.DecisionEngineSchedulingService()
bg_scheduler_service = scheduling.DecisionEngineSchedulingService()
# Only 1 process
launcher = watcher_service.launch(CONF, de_service)
launcher.launch_service(bg_schedulder_service)
launcher.launch_service(bg_scheduler_service)
launcher.wait()

View File

@ -59,7 +59,7 @@ class GnocchiHelper(object):
:param start_time: Start datetime from which metrics will be used
:param stop_time: End datetime from which metrics will be used
:param granularity: frequency of marking metric point, in seconds
:param aggregation: Should be chosen in accrodance with policy
:param aggregation: Should be chosen in accordance with policy
aggregations
:return: value of aggregated metric
"""

View File

@ -688,7 +688,7 @@ class BaseConnection(object):
def update_efficacy_indicator(self, efficacy_indicator_id, values):
"""Update properties of an efficacy indicator.
:param efficacy_indicator_uuid: The UUID of an efficacy indicator
:param efficacy_indicator_id: The ID of an efficacy indicator
:returns: An efficacy indicator
:raises: :py:class:`~.EfficacyIndicatorNotFound`
:raises: :py:class:`~.Invalid`

View File

@ -104,7 +104,7 @@ class WeightPlanner(base.BasePlanner):
# START --> migrate-1 --> migrate-3
# \ \--> resize-1 --> FINISH
# \--> migrate-2 -------------/
# In the above case migrate-1 will the only memeber of the leaf
# In the above case migrate-1 will be the only member of the leaf
# group that migrate-3 will use as parent group, whereas
# resize-1 will have both migrate-2 and migrate-3 in its
# parent/leaf group

View File

@ -297,7 +297,7 @@ class UnclassifiedStrategy(BaseStrategy):
The goal defined within this strategy can be used to simplify the
documentation explaining how to implement a new strategy plugin by
ommitting the need for the strategy developer to define a goal straight
omitting the need for the strategy developer to define a goal straight
away.
"""

View File

@ -104,7 +104,7 @@ class WorkloadBalance(base.WorkloadStabilizationBaseStrategy):
:param osc: :py:class:`~.OpenStackClients` instance
"""
super(WorkloadBalance, self).__init__(config, osc)
# the migration plan will be triggered when the CPU utlization %
# the migration plan will be triggered when the CPU utilization %
# reaches threshold
self._meter = self.METER_NAME
self._ceilometer = None

View File

@ -152,7 +152,7 @@ class WorkloadStabilization(base.WorkloadStabilizationBaseStrategy):
"metrics. The period is simply a repeating"
" interval of time into which the samples"
" are grouped for aggregation. Watcher "
"uses only the last period of all recieved"
"uses only the last period of all received"
" ones.",
"type": "object",
"default": {"instance": 720, "node": 600}

View File

@ -74,15 +74,15 @@ class TestDbEfficacyIndicatorFilters(base.DbTestCase):
with freezegun.freeze_time(self.FAKE_TODAY):
self.dbapi.update_efficacy_indicator(
self.efficacy_indicator1.uuid,
values={"description": "New decription 1"})
values={"description": "New description 1"})
with freezegun.freeze_time(self.FAKE_OLD_DATE):
self.dbapi.update_efficacy_indicator(
self.efficacy_indicator2.uuid,
values={"description": "New decription 2"})
values={"description": "New description 2"})
with freezegun.freeze_time(self.FAKE_OLDER_DATE):
self.dbapi.update_efficacy_indicator(
self.efficacy_indicator3.uuid,
values={"description": "New decription 3"})
values={"description": "New description 3"})
def test_get_efficacy_indicator_filter_deleted_true(self):
with freezegun.freeze_time(self.FAKE_TODAY):

View File

@ -165,7 +165,7 @@ class BaseInfraOptimTest(test.BaseTestCase):
"""Wrapper utility for creating a test audit
:param audit_template_uuid: Audit Template UUID this audit will use
:param type: Audit type (either ONESHOT or CONTINUOUS)
:param audit_type: Audit type (either ONESHOT or CONTINUOUS)
:param state: Audit state (str)
:param interval: Audit interval in seconds (int)
:return: A tuple with The HTTP response and its body