Correct some misspelt words in glance

There are some misspelt words in glance,
    specfied (specified)
    pluging (plugin)
    cient (client)
    siganture (signature)
    propertys (properties)
    delted (deleted)
    collumn (column)
    pacakge (package)
    sigle (single)
    logile (logfile)

Change-Id: Iedb4f4199c88bdad42d80475906635148bb9df83
Closes-Bug: #1580409
This commit is contained in:
zhufl 2016-05-11 10:43:46 +08:00
parent da31cfff61
commit a9c2e11661
10 changed files with 16 additions and 16 deletions

View File

@ -94,7 +94,7 @@ class ImageDataController(object):
if CONF.data_api == 'glance.db.registry.api':
# create a trust if backend is registry
try:
# request user pluging for current token
# request user plugin for current token
user_plugin = req.environ.get('keystone.token_auth')
roles = []
# use roles from request environment because they

View File

@ -500,13 +500,13 @@ class RequestDeserializer(wsgi.JSONRequestDeserializer):
partial_image = {path_root: change['value']}
elif ((path_root in get_base_properties().keys()) and
(get_base_properties()[path_root].get('type', '') == 'array')):
# NOTE(zhiyan): cient can use PATCH API to adding element to
# the image's existing set property directly.
# Such as: 1. using '/locations/N' path to adding a location
# to the image's 'locations' list at N position.
# NOTE(zhiyan): client can use the PATCH API to add an element
# directly to an existing property
# Such as: 1. using '/locations/N' path to add a location
# to the image's 'locations' list at position N.
# (implemented)
# 2. using '/tags/-' path to appending a tag to the
# image's 'tags' list at last. (Not implemented)
# 2. using '/tags/-' path to append a tag to the
# image's 'tags' list at the end. (Not implemented)
partial_image = {path_root: [change['value']]}
if partial_image:

View File

@ -161,7 +161,7 @@ class OVAImageExtractor(object):
"""Parses the OVF file
Parses the OVF file for specified metadata properties. Interested
properties must be specfied in ovf-metadata.json conf file.
properties must be specified in ovf-metadata.json conf file.
The OVF file's qualified namespaces are removed from the included
properties.

View File

@ -297,7 +297,7 @@ def get_verifier(context, image_properties):
def get_signature(signature_data):
"""Decode the signature data and returns the signature.
:param siganture_data: the base64-encoded signature data
:param signature_data: the base64-encoded signature data
:returns: the decoded signature
:raises glance.common.exception.SignatureVerificationError: if the
signature data is malformatted

View File

@ -67,8 +67,8 @@ class TestOvfProcessTask(test_utils.BaseTestCase):
super(TestOvfProcessTask, self).tearDown()
def _copy_ova_to_tmpdir(self, ova_name):
# Copies an ova pacakge to the tempdir for tempdir from where
# the system-under-test will read it from
# Copies an ova package to the tempdir from which
# it will be read by the system-under-test
shutil.copy(os.path.join(self.test_ova_dir, ova_name), self.tempdir)
return os.path.join(self.tempdir, ova_name)

View File

@ -52,7 +52,7 @@ class TestArtifactsLoader(utils.BaseTestCase):
def test_load(self):
"""
Plugins can be loaded as entrypoint=sigle plugin and
Plugins can be loaded as entrypoint=single plugin and
entrypoint=[a, list, of, plugins]
"""
# single version

View File

@ -238,7 +238,7 @@ class MigrationsMixin(test_migrations.WalkVersionsMixin):
# load names from name collumn
image_names = [row['name'] for row in select]
# check names from data in image names from name collumn
# check names from data in image names from name column
for element in data:
self.assertIn(element['key'], image_names)

View File

@ -4755,7 +4755,7 @@ class TestAPIPropertyQuotas(base.IsolatedUnitTest):
def test_update_image_with_too_many_properties_without_purge_props(self):
"""
Ensure that updating image properties counts existing image propertys
Ensure that updating image properties counts existing image properties
when enforcing property quota.
"""
self.config(image_property_quota=1)

View File

@ -677,7 +677,7 @@ class TestRegistryV2Client(base.IsolatedUnitTest,
self.assertEqual(0, num_members)
def test_image_member_find_include_deleted(self):
"""Tests getting member images include the delted member"""
"""Tests getting image members including the deleted member"""
values = dict(image_id=UUID2, member='pattieblack')
# create a member
member = self.client.image_member_create(values=values)

View File

@ -196,7 +196,7 @@ def fork_exec(cmd,
:param cmd: Command to execute as an array of arguments.
:param exec_env: A dictionary representing the environment with
which to run the command.
:param logile: A path to a file which will hold the stdout/err of
:param logfile: A path to a file which will hold the stdout/err of
the child process.
:param pass_fds: Sequence of file descriptors passed to the child.
"""