|
1
|
from app.connectors.portainer.services.nodes import get_node_details |
|
2
|
|
|
3
|
|
|
4
|
async def list_node_ips() -> list: |
|
5
|
""" |
|
6
|
Get the node IPs from the Portainer API. |
|
7
|
""" |
|
8
|
nodes = await get_node_details() |
|
9
|
return [node.Status.Addr for node in nodes.nodes] |