Merge "[codespell] fix typos in doc,tests and help messages"

This commit is contained in:
Zuul 2024-01-30 09:34:00 +00:00 committed by Gerrit Code Review
commit f0f811ce4b
6 changed files with 16 additions and 10 deletions

View File

@ -2842,7 +2842,7 @@ class ListServer(command.Lister):
try:
# some deployments can have *loads* of images so we only
# want to list the ones we care about. It would be better
# to only retrun the *fields* we care about (name) but
# to only return the *fields* we care about (name) but
# glance doesn't support that
# NOTE(stephenfin): This could result in super long URLs
# but it seems unlikely to cause issues. Apache supports

View File

@ -92,7 +92,9 @@ class DeletePolicy(command.Command):
if result > 0:
total = len(parsed_args.policy)
msg = _("%(result)s of %(total)s policys failed " "to delete.") % {
msg = _(
"%(result)s of %(total)s policies failed " "to delete."
) % {
'result': result,
'total': total,
}

View File

@ -129,7 +129,7 @@ class DeleteNDPProxy(command.Command):
if result > 0:
total = len(parsed_args.ndp_proxy)
msg = _(
"%(result)s of %(total)s NDP Proxy failed " "to delete."
"%(result)s of %(total)s NDP proxies failed " "to delete."
) % {'result': result, 'total': total}
raise exceptions.CommandError(msg)
@ -142,12 +142,16 @@ class ListNDPProxy(command.Lister):
parser.add_argument(
'--router',
metavar='<router>',
help=_("List only NDP proxies belong to this router (name or ID)"),
help=_(
"List only NDP proxies belonging to this router (name or ID)"
),
)
parser.add_argument(
'--port',
metavar='<port>',
help=_("List only NDP proxies assocate to this port (name or ID)"),
help=_(
"List only NDP proxies associated to this port (name or ID)"
),
)
parser.add_argument(
'--ip-address',

View File

@ -68,7 +68,7 @@ class TestCase(testtools.TestCase):
:param cloud: The cloud to execute against. This can be a string, empty
string, or None. A string results in '--os-auth-type $cloud', an
empty string results in the '--os-auth-type' option being
omitted, and None resuts in '--os-auth-type none' for legacy
omitted, and None results in '--os-auth-type none' for legacy
reasons.
:param fail_ok: If failure is permitted. If False (default), a command
failure will result in `~tempest.lib.exceptions.CommandFailed`

View File

@ -46,7 +46,7 @@ def create_one_image(attrs=None):
"""Create a fake image.
:param Dictionary attrs:
A dictionary with all attrbutes of image
A dictionary with all attributes of image
:return:
A FakeResource object with id, name, owner, protected,
visibility and tags attrs

View File

@ -183,7 +183,7 @@ class CreateVolumeType(command.ShowOne):
help=_(
"Set an availability zone for this volume type "
"(this is an alias for '--property RESKEY:availability_zones:<az>') " # noqa: E501
"(repeat option to set multiple availabilty zones)"
"(repeat option to set multiple availability zones)"
),
)
parser.add_argument(
@ -459,7 +459,7 @@ class ListVolumeType(command.Lister):
help=_(
"List only volume types with this availability configured "
"(this is an alias for '--property RESKEY:availability_zones:<az>') " # noqa: E501
"(repeat option to filter on multiple availabilty zones)"
"(repeat option to filter on multiple availability zones)"
),
)
return parser
@ -628,7 +628,7 @@ class SetVolumeType(command.Command):
help=_(
"Set an availability zone for this volume type "
"(this is an alias for '--property RESKEY:availability_zones:<az>') " # noqa: E501
"(repeat option to set multiple availabilty zones)"
"(repeat option to set multiple availability zones)"
),
)
parser.add_argument(