From 0f140c7b9673538da4948521ff9d990915766591 Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Thu, 24 Sep 2015 21:10:36 +0800 Subject: [PATCH] Fix some spelling typo in manual and program output Fixed following typos. infomation -> information initilization -> initialization intialize -> initialize compatability -> compatibility compatability -> compatibility quering -> querying initilization -> initialization infomation -> information incomming -> incoming Also fixed some small typo in source comment. Change-Id: I381aed76094f19f8ef7e821e965fafb0dfe900b2 Signed-off-by: Zhao Lei --- README.rst | 4 ++-- doc/source/developer/creating_custom_action.rst | 2 +- doc/source/guides/configuration_guide.rst | 2 +- doc/source/guides/installation_guide.rst | 2 +- mistral/api/controllers/v2/action.py | 2 +- mistral/db/v2/sqlalchemy/api.py | 4 ++-- mistral/tests/unit/test_coordination.py | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.rst b/README.rst index 254745a83..a29a0b680 100644 --- a/README.rst +++ b/README.rst @@ -117,7 +117,7 @@ Mistral configuration is needed for getting it work correctly either with real O connection = postgresql://:@localhost:5432/mistral 8. **If you are not using OpenStack, skip this item.** Update *mistral/actions/openstack/mapping.json* file which contains all allowed OpenStack actions, -according to the specific client versions of OpenStack projects in your deployment. Please find more detailed infomation in *tools/get_action_list.py* script. +according to the specific client versions of OpenStack projects in your deployment. Please find more detailed information in *tools/get_action_list.py* script. Before the first run -------------------- @@ -132,7 +132,7 @@ For updating the database to the latest revision type:: For more detailed information about *mistral-db-manage* script please see migration readme `here `__. -| NOTE: For users want a dry run with SQLite database backend(not used in production), *mistral-db-manage* is not recommended for database initialization because of `SQLite limitations `_. Please use sync_db script described below instead for database initilization. +| NOTE: For users want a dry run with SQLite database backend(not used in production), *mistral-db-manage* is not recommended for database initialization because of `SQLite limitations `_. Please use sync_db script described below instead for database initialization. Before starting Mistral server, run sync_db script. It prepares the DB, creates in it with all standard actions and standard workflows which Mistral provides for all mistral users. diff --git a/doc/source/developer/creating_custom_action.rst b/doc/source/developer/creating_custom_action.rst index be2fa4aab..83afdb583 100644 --- a/doc/source/developer/creating_custom_action.rst +++ b/doc/source/developer/creating_custom_action.rst @@ -10,7 +10,7 @@ How to write an Action Plugin class RunnerAction(base.Action): def __init__(self, param): - # store the incomming params + # store the incoming params self.param = param def run(self): diff --git a/doc/source/guides/configuration_guide.rst b/doc/source/guides/configuration_guide.rst index 138df9876..2e8f72e7e 100644 --- a/doc/source/guides/configuration_guide.rst +++ b/doc/source/guides/configuration_guide.rst @@ -70,7 +70,7 @@ either with real OpenStack environment or without OpenStack environment. connection = postgresql://:@:5432/mistral -8. **If you are not using OpenStack, skip this item.** Update mistral/actions/openstack/mapping.json file which contains all allowed OpenStack actions, according to the specific client versions of OpenStack projects in your deployment. Please find more detailed infomation in tools/get_action_list.py script. +8. **If you are not using OpenStack, skip this item.** Update mistral/actions/openstack/mapping.json file which contains all allowed OpenStack actions, according to the specific client versions of OpenStack projects in your deployment. Please find more detailed information in tools/get_action_list.py script. 9. Configure Task affinity feature if needed. It is needed for distinguishing either single task executor or one task executor from group of task executors:: diff --git a/doc/source/guides/installation_guide.rst b/doc/source/guides/installation_guide.rst index 9dd2108c4..add0061d6 100644 --- a/doc/source/guides/installation_guide.rst +++ b/doc/source/guides/installation_guide.rst @@ -74,7 +74,7 @@ Before starting Mistral server, run *mistral-db-manage populate* command. It pre For more detailed information about *mistral-db-manage* script please see :doc:`Mistral Upgrade Guide `. -**NOTE**: For users who want a dry run with **SQLite** database backend(not used in production), *mistral-db-manage* is not recommended for database initialization because of `SQLite limitations `_. Please use sync_db script described below instead for database initilization. +**NOTE**: For users who want a dry run with **SQLite** database backend(not used in production), *mistral-db-manage* is not recommended for database initialization because of `SQLite limitations `_. Please use sync_db script described below instead for database initialization. **If you use virtualenv**:: diff --git a/mistral/api/controllers/v2/action.py b/mistral/api/controllers/v2/action.py index c9f5ef3eb..66490bced 100644 --- a/mistral/api/controllers/v2/action.py +++ b/mistral/api/controllers/v2/action.py @@ -179,7 +179,7 @@ class ActionsController(rest.RestController, hooks.HookController): :param marker: Optional. Pagination marker for large data sets. :param limit: Optional. Maximum number of resources to return in a single result. Default value is None for backward - compatability. + compatibility. :param sort_keys: Optional. Columns to sort results by. Default: name. :param sort_dirs: Optional. Directions to sort corresponding to diff --git a/mistral/db/v2/sqlalchemy/api.py b/mistral/db/v2/sqlalchemy/api.py index d461c186a..5894d6d0d 100644 --- a/mistral/db/v2/sqlalchemy/api.py +++ b/mistral/db/v2/sqlalchemy/api.py @@ -292,7 +292,7 @@ def get_workflow_definitions(limit=None, marker=None, sort_keys=None, ) except Exception as e: raise exc.DBQueryEntryException( - "Failed when quering database, error type: %s, " + "Failed when querying database, error type: %s, " "error message: %s" % (e.__class__.__name__, e.message) ) @@ -402,7 +402,7 @@ def get_action_definitions(limit=None, marker=None, sort_keys=['name'], ) except Exception as e: raise exc.DBQueryEntryException( - "Failed when quering database, error type: %s, " + "Failed when querying database, error type: %s, " "error message: %s" % (e.__class__.__name__, e.message) ) diff --git a/mistral/tests/unit/test_coordination.py b/mistral/tests/unit/test_coordination.py index 93937e075..4379090fa 100644 --- a/mistral/tests/unit/test_coordination.py +++ b/mistral/tests/unit/test_coordination.py @@ -123,7 +123,7 @@ class ServiceTest(base.BaseTest): def setUp(self): super(ServiceTest, self).setUp() - # Re-intialize the global service coordinator object, in order to use + # Re-initialize the global service coordinator object, in order to use # new coordination configuration. coordination.cleanup_service_coordinator()