Skip to content

Commit 87834c7

Browse files
committed
Rename IP address parameter to not shadow class
1 parent eedcb4a commit 87834c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

upcloud_api/server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ def add_ip(self, family: str = 'IPv4') -> IPAddress:
211211
self.ip_addresses.append(IP)
212212
return IP
213213

214-
def remove_ip(self, IPAddress: IPAddress) -> None:
214+
def remove_ip(self, ip_address: IPAddress) -> None:
215215
"""
216216
Release the specified IP-address from the server.
217217
"""
218-
self.cloud_manager.release_ip(IPAddress.address)
219-
self.ip_addresses.remove(IPAddress)
218+
self.cloud_manager.release_ip(ip_address.address)
219+
self.ip_addresses.remove(ip_address)
220220

221221
def add_storage(
222222
self,

0 commit comments

Comments
 (0)