From 541b1b52b36f02ed971e5797e7f320b64ff13eba Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Mon, 25 Nov 2013 17:08:12 +0800 Subject: [PATCH] Fix typo in keystone 1. Validate the user and tenant auth into in order to -> Validate the user and tenant auth info in order to 2. attmepting -> attempting 3. extnsion -> extension 4. identfier -> identifier 5. establed -> established 6. specifc -> specific 7. intitalized -> initialized 8. explicity -> explicitly 9. uniq -> unique Change-Id: I8f4420e7c41cfdbc3f4751ed1c0b9a6e151b0940 Closes-Bug: #1254585 --- keystone/catalog/backends/templated.py | 2 +- keystone/common/cms.py | 2 +- keystone/common/extension.py | 2 +- keystone/contrib/endpoint_filter/controllers.py | 4 ++-- keystone/identity/core.py | 4 ++-- keystone/openstack/common/db/sqlalchemy/models.py | 2 +- keystone/openstack/common/db/sqlalchemy/utils.py | 6 +++--- keystone/token/core.py | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/keystone/catalog/backends/templated.py b/keystone/catalog/backends/templated.py index eb37dbf9ea..b7880041a7 100644 --- a/keystone/catalog/backends/templated.py +++ b/keystone/catalog/backends/templated.py @@ -67,7 +67,7 @@ class TemplatedCatalog(kvs.Catalog): and is stored in a similar looking hierarchy. Where a value can contain values to be interpolated by standard python string interpolation that look - like (the % is replaced by a $ due to paste attmepting to interpolate on + like (the % is replaced by a $ due to paste attempting to interpolate on its own: http://localhost:$(public_port)s/ diff --git a/keystone/common/cms.py b/keystone/common/cms.py index d9973c834e..eca3cc038d 100644 --- a/keystone/common/cms.py +++ b/keystone/common/cms.py @@ -81,7 +81,7 @@ def is_ans1_token(token): re: http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf - pg4: For tags from 0 to 30 the first octet is the identfier + pg4: For tags from 0 to 30 the first octet is the identifier pg10: Hex 30 means sequence, followed by the length of that sequence. pg5: Second octet is the length octet first bit indicates short or long form, next 7 bits encode the number diff --git a/keystone/common/extension.py b/keystone/common/extension.py index 9170d143c2..37e7d6155d 100644 --- a/keystone/common/extension.py +++ b/keystone/common/extension.py @@ -30,7 +30,7 @@ def register_admin_extension(url_prefix, extension_data): urls generated by the extension. extension_data is a dictionary. The expected fields are: - 'name': short, human readable name of the extnsion + 'name': short, human readable name of the extension 'namespace': xml namespace 'alias': identifier for the extension 'updated': date the extension was last updated diff --git a/keystone/contrib/endpoint_filter/controllers.py b/keystone/contrib/endpoint_filter/controllers.py index 5939215eea..6b11080f54 100644 --- a/keystone/contrib/endpoint_filter/controllers.py +++ b/keystone/contrib/endpoint_filter/controllers.py @@ -29,8 +29,8 @@ class EndpointFilterV3Controller(controller.V3Controller): """Establishes an association between an endpoint and a project.""" # NOTE(gyee): we just need to make sure endpoint and project exist # first. We don't really care whether if project is disabled. - # The relationship can still be establed even with a disabled project - # as there are no security implications. + # The relationship can still be established even with a disabled + # project as there are no security implications. self.catalog_api.get_endpoint(endpoint_id) self.assignment_api.get_project(project_id) # NOTE(gyee): we may need to cleanup any existing project-endpoint diff --git a/keystone/identity/core.py b/keystone/identity/core.py index 6a9f90c9d9..18cd1fdab9 100644 --- a/keystone/identity/core.py +++ b/keystone/identity/core.py @@ -63,7 +63,7 @@ def filter_user(user_ref): class DomainConfigs(dict): - """Discover, store and provide access to domain specifc configs. + """Discover, store and provide access to domain specific configs. The setup_domain_drives() call will be made via the wrapper from the first call to any driver function handled by this manager. This @@ -194,7 +194,7 @@ class Manager(manager.Manager): from with the @domains_configured wrapper in a lazy loading fashion to get around the fact that we can't satisfy the assignment api it needs from within our __init__() function since the assignment driver is not - itself yet intitalized. + itself yet initialized. Each of the identity calls are pre-processed here to choose, based on domain, which of the drivers should be called. The non-domain-specific diff --git a/keystone/openstack/common/db/sqlalchemy/models.py b/keystone/openstack/common/db/sqlalchemy/models.py index 76c4acb61b..398f524596 100644 --- a/keystone/openstack/common/db/sqlalchemy/models.py +++ b/keystone/openstack/common/db/sqlalchemy/models.py @@ -47,7 +47,7 @@ class ModelBase(object): # raises NoneType exception if there is no running # transaction and rollback is called. As long as # sqlalchemy has this bug we have to create transaction - # explicity. + # explicitly. with session.begin(subtransactions=True): session.add(self) session.flush() diff --git a/keystone/openstack/common/db/sqlalchemy/utils.py b/keystone/openstack/common/db/sqlalchemy/utils.py index 1ac5cac394..6e75dd3095 100644 --- a/keystone/openstack/common/db/sqlalchemy/utils.py +++ b/keystone/openstack/common/db/sqlalchemy/utils.py @@ -217,9 +217,9 @@ def drop_unique_constraint(migrate_engine, table_name, uc_name, *columns, NullType with the correct column type. :param migrate_engine: sqlalchemy engine - :param table_name: name of table that contains uniq constraint. - :param uc_name: name of uniq constraint that will be dropped. - :param columns: columns that are in uniq constraint. + :param table_name: name of table that contains unique constraint. + :param uc_name: name of unique constraint that will be dropped. + :param columns: columns that are in unique constraint. :param col_name_col_instance: contains pair column_name=column_instance. column_instance is instance of Column. These params are required only for columns that have unsupported diff --git a/keystone/token/core.py b/keystone/token/core.py index 9518ab26aa..e5c52362c0 100644 --- a/keystone/token/core.py +++ b/keystone/token/core.py @@ -52,7 +52,7 @@ def default_expire_time(): def validate_auth_info(self, user_ref, tenant_ref): """Validate user and tenant auth info. - Validate the user and tenant auth into in order to ensure that user and + Validate the user and tenant auth info in order to ensure that user and tenant information is valid and not disabled. Consolidate the checks here to ensure consistency between token auth and