Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Dec 11, 2024
1 parent 38c43b1 commit 0c836e7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/inventory/scaleway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0c836e7

Please sign in to comment.