Skip to content

Commit b52bbe1

Browse files
author
Vu Cong Tuan
committed
Trivial fix typos
Change-Id: I72a1da209df38e226ec02d9dbd0142ed4020c0d2
1 parent b78153a commit b52bbe1

7 files changed

Lines changed: 15 additions & 15 deletions

File tree

openstackclient/api/compute_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def floating_ip_delete(
128128
129129
https://developer.openstack.org/api-ref/compute/#delete-deallocate-floating-ip-address
130130
131-
:param string security_group:
131+
:param string floating_ip_id:
132132
Floating IP ID
133133
"""
134134

openstackclient/tests/functional/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def is_service_enabled(service):
4848
ret = execute('openstack service show -f value -c enabled ' + service)
4949
except exceptions.CommandFailed:
5050
# We get here for multiple reasons, all of them mean that a working
51-
# service is not avilable
51+
# service is not available
5252
return False
5353

5454
return "True" in ret
@@ -69,7 +69,7 @@ def get_openstack_configuration_value(cls, configuration):
6969
return cls.openstack('configuration show ' + opts)
7070

7171
@classmethod
72-
def get_openstack_extention_names(cls):
72+
def get_openstack_extension_names(cls):
7373
opts = cls.get_opts(['Name'])
7474
return cls.openstack('extension list ' + opts)
7575

openstackclient/tests/functional/network/v2/test_network_segment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def setUpClass(cls):
3737
# NOTE(rtheis): The segment extension is not yet enabled
3838
# by default.
3939
# Skip the tests if not enabled.
40-
extensions = cls.get_openstack_extention_names()
40+
extensions = cls.get_openstack_extension_names()
4141
if 'Segment' in extensions:
4242
cls.NETWORK_SEGMENT_EXTENSION = 'Segment'
4343

openstackclient/tests/functional/network/v2/test_subnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,6 @@ def _subnet_create(self, cmd, name, is_type_ipv4=True):
278278
raise
279279
pass
280280
else:
281-
# break and no longer retry if create sucessfully
281+
# break and no longer retry if create successfully
282282
break
283283
return cmd_output

openstackclient/tests/unit/compute/v2/fakes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def get_security_groups(security_groups=None, count=2):
503503
If security groups list is provided, then initialize the Mock object
504504
with the list. Otherwise create one.
505505
506-
:param List security groups:
506+
:param List security_groups:
507507
A list of FakeResource objects faking security groups
508508
:param int count:
509509
The number of security groups to fake
@@ -1029,7 +1029,7 @@ def get_floating_ips(floating_ips=None, count=2):
10291029
If floating_ips list is provided, then initialize the Mock object
10301030
with the list. Otherwise create one.
10311031
1032-
:param List floating ips:
1032+
:param List floating_ips:
10331033
A list of FakeResource objects faking floating ips
10341034
:param int count:
10351035
The number of floating ips to fake

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def create_one_image_member(attrs=None):
287287
"""Create a fake image member.
288288
289289
:param Dictionary attrs:
290-
A dictionary with all attrbutes of image member
290+
A dictionary with all attributes of image member
291291
:return:
292292
A FakeResource object with member_id, image_id and so on
293293
"""

openstackclient/tests/unit/network/v2/fakes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def get_address_scopes(address_scopes=None, count=2):
144144
If address scopes list is provided, then initialize the Mock object
145145
with the list. Otherwise create one.
146146
147-
:param List address scopes:
147+
:param List address_scopes:
148148
A list of FakeResource objects faking address scopes
149149
:param int count:
150150
The number of address scopes to fake
@@ -883,7 +883,7 @@ def get_qos_policies(qos_policies=None, count=2):
883883
If qos policies list is provided, then initialize the Mock object
884884
with the list. Otherwise create one.
885885
886-
:param List address scopes:
886+
:param List qos_policies:
887887
A list of FakeResource objects faking qos policies
888888
:param int count:
889889
The number of QoS policies to fake
@@ -961,7 +961,7 @@ def get_qos_rules(qos_rules=None, count=2):
961961
If Network QoS rules list is provided, then initialize the Mock
962962
object with the list. Otherwise create one.
963963
964-
:param List address scopes:
964+
:param List qos_rules:
965965
A list of FakeResource objects faking Network QoS rules
966966
:param int count:
967967
The number of QoS minimum bandwidth rules to fake
@@ -1161,7 +1161,7 @@ def get_security_groups(security_groups=None, count=2):
11611161
If security groups list is provided, then initialize the Mock object
11621162
with the list. Otherwise create one.
11631163
1164-
:param List security groups:
1164+
:param List security_groups:
11651165
A list of FakeResource objects faking security groups
11661166
:param int count:
11671167
The number of security groups to fake
@@ -1241,7 +1241,7 @@ def get_security_group_rules(security_group_rules=None, count=2):
12411241
If security group rules list is provided, then initialize the Mock
12421242
object with the list. Otherwise create one.
12431243
1244-
:param List security group rules:
1244+
:param List security_group_rules:
12451245
A list of FakeResource objects faking security group rules
12461246
:param int count:
12471247
The number of security group rules to fake
@@ -1406,7 +1406,7 @@ def get_floating_ips(floating_ips=None, count=2):
14061406
If floating_ips list is provided, then initialize the Mock object
14071407
with the list. Otherwise create one.
14081408
1409-
:param List floating ips:
1409+
:param List floating_ips:
14101410
A list of FakeResource objects faking floating ips
14111411
:param int count:
14121412
The number of floating ips to fake
@@ -1585,7 +1585,7 @@ def get_subnet_pools(subnet_pools=None, count=2):
15851585
If subnet_pools list is provided, then initialize the Mock object
15861586
with the list. Otherwise create one.
15871587
1588-
:param List subnet pools:
1588+
:param List subnet_pools:
15891589
A list of FakeResource objects faking subnet pools
15901590
:param int count:
15911591
The number of subnet pools to fake

0 commit comments

Comments
 (0)