Skip to content

Commit f0f811c

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[codespell] fix typos in doc,tests and help messages"
2 parents a00cc44 + 71839eb commit f0f811c

6 files changed

Lines changed: 16 additions & 10 deletions

File tree

openstackclient/compute/v2/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2842,7 +2842,7 @@ def take_action(self, parsed_args):
28422842
try:
28432843
# some deployments can have *loads* of images so we only
28442844
# want to list the ones we care about. It would be better
2845-
# to only retrun the *fields* we care about (name) but
2845+
# to only return the *fields* we care about (name) but
28462846
# glance doesn't support that
28472847
# NOTE(stephenfin): This could result in super long URLs
28482848
# but it seems unlikely to cause issues. Apache supports

openstackclient/identity/v3/policy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ def take_action(self, parsed_args):
9292

9393
if result > 0:
9494
total = len(parsed_args.policy)
95-
msg = _("%(result)s of %(total)s policys failed " "to delete.") % {
95+
msg = _(
96+
"%(result)s of %(total)s policies failed " "to delete."
97+
) % {
9698
'result': result,
9799
'total': total,
98100
}

openstackclient/network/v2/ndp_proxy.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def take_action(self, parsed_args):
129129
if result > 0:
130130
total = len(parsed_args.ndp_proxy)
131131
msg = _(
132-
"%(result)s of %(total)s NDP Proxy failed " "to delete."
132+
"%(result)s of %(total)s NDP proxies failed " "to delete."
133133
) % {'result': result, 'total': total}
134134
raise exceptions.CommandError(msg)
135135

@@ -142,12 +142,16 @@ def get_parser(self, prog_name):
142142
parser.add_argument(
143143
'--router',
144144
metavar='<router>',
145-
help=_("List only NDP proxies belong to this router (name or ID)"),
145+
help=_(
146+
"List only NDP proxies belonging to this router (name or ID)"
147+
),
146148
)
147149
parser.add_argument(
148150
'--port',
149151
metavar='<port>',
150-
help=_("List only NDP proxies assocate to this port (name or ID)"),
152+
help=_(
153+
"List only NDP proxies associated to this port (name or ID)"
154+
),
151155
)
152156
parser.add_argument(
153157
'--ip-address',

openstackclient/tests/functional/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def openstack(
6868
:param cloud: The cloud to execute against. This can be a string, empty
6969
string, or None. A string results in '--os-auth-type $cloud', an
7070
empty string results in the '--os-auth-type' option being
71-
omitted, and None resuts in '--os-auth-type none' for legacy
71+
omitted, and None results in '--os-auth-type none' for legacy
7272
reasons.
7373
:param fail_ok: If failure is permitted. If False (default), a command
7474
failure will result in `~tempest.lib.exceptions.CommandFailed`

openstackclient/tests/unit/image/v1/fakes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def create_one_image(attrs=None):
4646
"""Create a fake image.
4747
4848
:param Dictionary attrs:
49-
A dictionary with all attrbutes of image
49+
A dictionary with all attributes of image
5050
:return:
5151
A FakeResource object with id, name, owner, protected,
5252
visibility and tags attrs

openstackclient/volume/v2/volume_type.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def get_parser(self, prog_name):
183183
help=_(
184184
"Set an availability zone for this volume type "
185185
"(this is an alias for '--property RESKEY:availability_zones:<az>') " # noqa: E501
186-
"(repeat option to set multiple availabilty zones)"
186+
"(repeat option to set multiple availability zones)"
187187
),
188188
)
189189
parser.add_argument(
@@ -459,7 +459,7 @@ def get_parser(self, prog_name):
459459
help=_(
460460
"List only volume types with this availability configured "
461461
"(this is an alias for '--property RESKEY:availability_zones:<az>') " # noqa: E501
462-
"(repeat option to filter on multiple availabilty zones)"
462+
"(repeat option to filter on multiple availability zones)"
463463
),
464464
)
465465
return parser
@@ -628,7 +628,7 @@ def get_parser(self, prog_name):
628628
help=_(
629629
"Set an availability zone for this volume type "
630630
"(this is an alias for '--property RESKEY:availability_zones:<az>') " # noqa: E501
631-
"(repeat option to set multiple availabilty zones)"
631+
"(repeat option to set multiple availability zones)"
632632
),
633633
)
634634
parser.add_argument(

0 commit comments

Comments
 (0)