Skip to content

Commit 079661e

Browse files
committed
Fix some typos
1 parent b5980a8 commit 079661e

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

upcloud_api/cloud_manager/cloud_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ class CloudManager(
2727
"""
2828
CloudManager contains the core functionality of the upcloud API library.
2929
30-
All other managers are mixed in so code can be organized in corresponding submanager classes.
30+
All other managers are mixed in so code can be organized in corresponding sub-manager classes.
3131
"""
3232

3333
def __init__(self, username: str, password: str, timeout: int = 60) -> None:
3434
"""
35-
Initiates CloudManager that handles all HTTP conections with UpCloud's API.
35+
Initiates CloudManager that handles all HTTP connections with UpCloud's API.
3636
3737
Optionally determine a timeout for API connections (in seconds). A timeout with the value
3838
`None` means that there is no timeout.

upcloud_api/cloud_manager/firewall_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def create_firewall_rule(self, server, firewall_rule_body):
4343
"""
4444
Create a new firewall rule for a given server uuid.
4545
46-
The rule can begiven as a dict or with FirewallRule.prepare_post_body().
46+
The rule can be given as a dict or with FirewallRule.prepare_post_body().
4747
Returns a FirewallRule object.
4848
"""
4949
server_uuid, server_instance = uuid_and_instance(server)

upcloud_api/cloud_manager/object_storage_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ObjectStorageManager:
1111

1212
def get_object_storages(self):
1313
"""
14-
List all Object Storage devices on the account or those which the subaccount has permissions.
14+
List all Object Storage devices on the account or those which the sub-account has permissions.
1515
"""
1616
url = '/object-storage'
1717
res = self.get_request(url)

upcloud_api/ip_address.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class IPAddress(UpCloudResource):
1313
ptr_record -- the reverse DNS name (string)
1414
server -- the UUID of the server this IP is attached to (string)
1515
16-
The only updateable field is the ptr_record.
16+
The only updatable field is the ptr_record.
1717
1818
Note that all of the fields are not always available depending on the API call,
1919
consult the official API docs for details.

upcloud_api/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _reset(self, **kwargs) -> None:
2424
Reset after repopulating from API.
2525
"""
2626

27-
# there are some inconsistenciens in the API regarding these
27+
# there are some inconsistencies in the API regarding these
2828
# note: this could be written in fancier ways, but this way is simpler
2929

3030
if 'uuid' in kwargs:

upcloud_api/tag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _reset(self, **kwargs) -> None:
2525
"""
2626
Reset the objects attributes.
2727
28-
Accepts servers as either unflattened or flattened UUID strings or Server objects.
28+
Accepts servers as either un-flattened or flattened UUID strings or Server objects.
2929
"""
3030
super()._reset(**kwargs)
3131

upcloud_api/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def try_it_n_times(operation, expected_error_codes, custom_error='operation fail
1010
1111
Raises if the API call fails with an error_code that is not expected.
1212
Raises if the API call has not succeeded within n attempts.
13-
Waits 3 seconds betwee each attempt.
13+
Waits 3 seconds between each attempt.
1414
"""
1515
for i in itertools.count():
1616
try:

0 commit comments

Comments
 (0)