[codespell] fix typos in doc,tests and help messages
Change-Id: I4823782daa1af3872bc22603147e3073152cc777
This commit is contained in:
parent
1678f87d7a
commit
71839eb5fa
@ -2751,7 +2751,7 @@ class ListServer(command.Lister):
|
|||||||
try:
|
try:
|
||||||
# some deployments can have *loads* of images so we only
|
# some deployments can have *loads* of images so we only
|
||||||
# want to list the ones we care about. It would be better
|
# 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
|
# glance doesn't support that
|
||||||
# NOTE(stephenfin): This could result in super long URLs
|
# NOTE(stephenfin): This could result in super long URLs
|
||||||
# but it seems unlikely to cause issues. Apache supports
|
# but it seems unlikely to cause issues. Apache supports
|
||||||
|
@ -92,7 +92,9 @@ class DeletePolicy(command.Command):
|
|||||||
|
|
||||||
if result > 0:
|
if result > 0:
|
||||||
total = len(parsed_args.policy)
|
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,
|
'result': result,
|
||||||
'total': total,
|
'total': total,
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ class DeleteNDPProxy(command.Command):
|
|||||||
if result > 0:
|
if result > 0:
|
||||||
total = len(parsed_args.ndp_proxy)
|
total = len(parsed_args.ndp_proxy)
|
||||||
msg = _(
|
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}
|
) % {'result': result, 'total': total}
|
||||||
raise exceptions.CommandError(msg)
|
raise exceptions.CommandError(msg)
|
||||||
|
|
||||||
@ -142,12 +142,16 @@ class ListNDPProxy(command.Lister):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--router',
|
'--router',
|
||||||
metavar='<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(
|
parser.add_argument(
|
||||||
'--port',
|
'--port',
|
||||||
metavar='<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(
|
parser.add_argument(
|
||||||
'--ip-address',
|
'--ip-address',
|
||||||
|
@ -65,7 +65,7 @@ class TestCase(testtools.TestCase):
|
|||||||
:param cloud: The cloud to execute against. This can be a string, empty
|
: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
|
string, or None. A string results in '--os-auth-type $cloud', an
|
||||||
empty string results in the '--os-auth-type' option being
|
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.
|
reasons.
|
||||||
:param fail_ok: If failure is permitted. If False (default), a command
|
:param fail_ok: If failure is permitted. If False (default), a command
|
||||||
failure will result in `~tempest.lib.exceptions.CommandFailed`
|
failure will result in `~tempest.lib.exceptions.CommandFailed`
|
||||||
|
@ -46,7 +46,7 @@ def create_one_image(attrs=None):
|
|||||||
"""Create a fake image.
|
"""Create a fake image.
|
||||||
|
|
||||||
:param Dictionary attrs:
|
:param Dictionary attrs:
|
||||||
A dictionary with all attrbutes of image
|
A dictionary with all attributes of image
|
||||||
:return:
|
:return:
|
||||||
A FakeResource object with id, name, owner, protected,
|
A FakeResource object with id, name, owner, protected,
|
||||||
visibility and tags attrs
|
visibility and tags attrs
|
||||||
|
@ -183,7 +183,7 @@ class CreateVolumeType(command.ShowOne):
|
|||||||
help=_(
|
help=_(
|
||||||
"Set an availability zone for this volume type "
|
"Set an availability zone for this volume type "
|
||||||
"(this is an alias for '--property RESKEY:availability_zones:<az>') " # noqa: E501
|
"(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(
|
parser.add_argument(
|
||||||
@ -459,7 +459,7 @@ class ListVolumeType(command.Lister):
|
|||||||
help=_(
|
help=_(
|
||||||
"List only volume types with this availability configured "
|
"List only volume types with this availability configured "
|
||||||
"(this is an alias for '--property RESKEY:availability_zones:<az>') " # noqa: E501
|
"(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
|
return parser
|
||||||
@ -628,7 +628,7 @@ class SetVolumeType(command.Command):
|
|||||||
help=_(
|
help=_(
|
||||||
"Set an availability zone for this volume type "
|
"Set an availability zone for this volume type "
|
||||||
"(this is an alias for '--property RESKEY:availability_zones:<az>') " # noqa: E501
|
"(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(
|
parser.add_argument(
|
||||||
|
Loading…
Reference in New Issue
Block a user