diff --git a/plugins/inventory/scaleway.py b/plugins/inventory/scaleway.py index 7f47c2b..9239528 100644 --- a/plugins/inventory/scaleway.py +++ b/plugins/inventory/scaleway.py @@ -284,8 +284,12 @@ def _get_dedibox(self, client: "Client", filters: _Filters) -> List[_Host]: results: List[_Host] = [] for server in servers: - public_ipv4 = filter(lambda ip: ip.version == IPVersion.IPV4, server.interfaces.ips) - public_ipv6 = filter(lambda ip: ip.version == IPVersion.IPV6, server.interfaces.ips) + public_ipv4 = filter( + lambda ip: ip.version == IPVersion.IPV4, server.interfaces.ips + ) + public_ipv6 = filter( + lambda ip: ip.version == IPVersion.IPV6, server.interfaces.ips + ) public_ipv4 = next(public_ipv4, None) public_ipv6 = next(public_ipv6, None)